[Samba] How to share slash (root directory)

Reindl Harald h.reindl at thelounge.net
Mon Jan 18 09:43:39 UTC 2016



Am 18.01.2016 um 08:48 schrieb Marc Chamberlin:
> That said, how do I configure Samba (ver 4.1.22-21.1-x86_64) to share
> the root "/" directory. I have tried just about every convoluted set of
> permutations I can think of but no joy figuring out how to get this to
> work. FYI, I have gotten other more specific shares working so this is
> not a firewall or server failure issue, and I have configured smbpasswd
> for both root and myself as users, with passwords. Relevant parts of one
> of my latest incarnation of smb.conf is

years ago i remember that this was no problem, however, just trick it 
out with a bind-mount

[root at rh:~]$ cat /etc/fstab | grep slash
/ /slash none  bind

[root at rh:~]$ mkdir /slash
[root at rh:~]$ mount /slash

[root at rh:~]$ ls /slash/
insgesamt 100K
drwxr-xr-x.   2 root root 4,0K 2011-06-08 13:17 boot
drwxrwxrwt    2 root root 4,0K 2011-06-09 13:27 clamav-quarantine
drwxr-xr-x.   2 root root 4,0K 2011-06-08 13:17 dev
drwxr-xr-x. 139 root root  12K 2016-01-17 23:13 etc
drwxr-xr-x    2 root root 4,0K 2011-06-15 22:16 home


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba/attachments/20160118/3208ac70/signature.sig>


More information about the samba mailing list