smbnetfs(1)
π¦ NAME π¦
smbnetfs β a user-space filesystem for SMB/NMB (Windows) network servers and shares. Yep, that's the whole vibe: it's the smbnetfs(1) manual page, section 1, General Commands Manual. Let's get into it, bestie. π
β¨ DESCRIPTION β¨
okay so the usage line is literally this and nothing else:
smbnetfs mountpoint [options]
That's it. That's the whole entrance. Now let me walk you through every single flag because there are so many and I am obsessed. πΈ
π general options:
-o opt,[opt...]β mount options. You can pass a whole lil list of them, one after another. β¨-h,--helpβ print help. The classic.-V,--versionβ print version. Show me the numbers, babe. π’
π SMBNetFS options:
these are the options, the main character ones. no cap.
-o config=PATHβ path to config. Default is~/.smb/smbnetfs.conf. π-o smbnetfs_debug=Nβ SMBNetFS debug level, andN<=10. Yes, ten is the ceiling, don't push it.-o smb_debug_level=Nβ Samba debug level, alsoN<=10. Sibling energy with the one above.-o log_file=PATHβ file to store SMBNetFS debug messages. Receipts go here. π-o local_charset=CHARSETβ local charset. It gets autodetected, so it already knows.-o samba_charset=CHARSETβ charset used by samba. Default vibe:utf-8.-o use_libsecret=BOOLβ enable/disable usage of libsecret as a password storage. π-o libsecret_timeout=Tβ auth retrieving timeout from libsecret base. Default:500ms.-o max_rw_block_size=Nβ maximum size of r/w block, in Kb. Autodetected, lowkey.-o smb_tree_scan_period=Tβ period of scanning the samba network tree. Default:300s. π³-o smb_tree_elements_ttl=Tβ TTL of scanned elements in the samba tree. Default:900s. β³-o smb_query_browsers=BOOLβ enable/disable scanning of the samba tree. Default:on.-o smb_timeout=Tβ Samba reply timeout. Default:20000ms. The way it just waits for a reply π-o show_$_shares=BOOLβ enable/disable showing of hidden shares. Default:off.-o show_hidden_hosts=BOOLβ see in documentation. Default:off. (Yes, that's literally what it says. The docs know. π)-o free_space_size=Nβ free space size in pages. Default:0.-o quiet_flag=BOOLβ do not fail onchown/chgroup. Default:on. Silent treatment, but functional.-o neg_cache=BOOLβ enable/disable negative cache. Default:on.-o neg_cache_timeout=Tβ negative cache records expiration time. Default:3000ms.-o stat_workaround_depth=Nβ konquerror and gnome terminal hack. Default:3. It's giving chaos-fixing icon. π οΈ-o time_step=Tβ scheduler sleep interval. Default:10s. π΄-o config_update_period=Tβ configuration update interval. Default:300s.-o max_ctx_count=Nβ maximum number of children processes. Default:15.-o max_retry_count=Nβ number of retries before fail. Default:2. Third time's not the charm here.-o listen_timeout=Tβ child process inactivity timeout. Default:300s.-o reply_timeout=Tβ child process reply timeout. Default:30s.-o max_passwd_query_count=Nβ see in documentation. Default:10. Again: the documentation knows the lore, bestie. π
π₯ FUSE options:
FUSE walked in and brought its whole closet. every fit below:
-d,-o debugβ enable debug output (implies-f).-fβ foreground operation. no background sneaking. π-sβ disable multi-threaded operation. One thread at a time, she's focused.-o allow_otherβ allow access to other users.-o allow_rootβ allow access to root.-o auto_unmountβ auto unmount on process termination.-o nonemptyβ allow mounts over non-empty file/dir.-o default_permissionsβ enable permission checking by kernel.-o fsname=NAMEβ set filesystem name. Name it, she's yours now. π·οΈ-o subtype=NAMEβ set filesystem type.-o large_readβ issue large read requests.2.4 only, so like, vintage.-o max_read=Nβ set maximum size of read requests.-o hard_removeβ immediate removal (don't hide files).-o use_inoβ let filesystem set inode numbers.-o readdir_inoβ try to fill ind_inoinreaddir.-o direct_ioβ use direct I/O.-o kernel_cacheβ cache files in kernel.-o [no]auto_cacheβ enable caching based on modification times. Default:off.-o umask=Mβ set file permissions, in octal. π-o uid=Nβ set file owner.-o gid=Nβ set file group.-o entry_timeout=Tβ cache timeout for names. Default:1.0s.-o negative_timeout=Tβ cache timeout for deleted names. Default:0.0s. Gone means gone.-o attr_timeout=Tβ cache timeout for attributes. Default:1.0s.-o ac_attr_timeout=Tβ auto cache timeout for attributes. Default:attr_timeout(it borrows its friend's value, cute).-o noforgetβ never forget cached inodes. Not me being sentimental over inodes π-o remember=Tβ remember cached inodes forTseconds. Default:0s.-o nopathβ don't supply path if not necessary.-o intrβ allow requests to be interrupted. Rude, but permitted.-o intr_signal=NUMβ signal to send on interrupt. Default:10.-o modules=M1[:M2...]β names of modules to push onto the filesystem stack.-o max_write=Nβ set maximum size of write requests.-o max_readahead=Nβ set maximum readahead.-o max_background=Nβ set number of maximum background requests.-o congestion_threshold=Nβ set kernel's congestion threshold. π¦-o async_readβ perform reads asynchronously. This is the default.-o sync_readβ perform reads synchronously.-o atomic_o_truncβ enable atomic open+truncate support.-o big_writesβ enable larger than4kBwrites.-o no_remote_lockβ disable remote file locking.-o no_remote_flockβ disable remote file locking (BSD).-o no_remote_posix_lockβ disable remove file locking (POSIX). (yes, it says "remove", I'm just the messenger π«Ά)-o [no_]splice_writeβ usespliceto write to the fuse device.-o [no_]splice_moveβ move data while splicing to the fuse device.-o [no_]splice_readβ usespliceto read from the fuse device.
π§ Module options:
[iconv]
-o from_code=CHARSETβ original encoding of file names. Default:UTF-8.-o to_code=CHARSETβ new encoding of the file names. Default:UTF-8.
[subdir]
-o subdir=DIRβ prepend this directory to all paths. It is mandatory, bestie, you literally cannot skip it. π¨-o [no]rellinksβ transform absolute symlinks to relative.
π FILES π
Please create the configuration directory ~/.smb. Yes please, it's a request from the manpage herself. That directory should contain at least two files: smb.conf and smbnetfs.conf.
You may copy smb.conf from the /etc/samba directory. And you can find a sample of smbnetfs.conf in the /etc directory. Free templates, we love to see it. π
π AUTHOR π
This manual page was written by Varun Hiremath <varunhiremath@gmail.com> and lately updated by Mikhail Kshevetskiy <mikhail.kshevetskiy@gmail.com>, for the Debian project (but may be used by others). Shoutout to the authors, icons only. π
okay that's the whole page, you ate it, no crumbs left. this was smbnetfs(1) from the General Commands Manual, dated January 05, 2018, brought to you by the Debian project β and now by me, your resident Unix bestie. go mount something. π
β¨π¦
π¦ where this page comes from
- debian bookworm: smbnetfs 0.6.3-1 Β· GPL-2.0-or-later
- debian trixie: smbnetfs 0.6.3-1+b1 Β· GPL-2.0-or-later
- ubuntu jammy: smbnetfs 0.6.3-1 Β· GPL-2.0-or-later
- ubuntu noble: smbnetfs 0.6.3-1build2 Β· GPL-2.0-or-later
- ubuntu questing: smbnetfs 0.6.3-1build2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms