I am somewhat baffled by this and Googling for an answer has not given
me any joy. I do get a lot of hits from preachers saying don't do it but
either no answer was given or the answer refers to some distant past
version of Samba... So, before anyone jumps on me, I know what I am
wanting to do, and there is no risks involved. I am on a small SOHO
network running my own group of computers, no one else is involved, and
I need quick access to the entire disks of each of the computers on my
network....
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 -
[global]
workgroup = WORKGROUP
passdb backend = smbpasswd
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
usershare owner only = No
add machine script = /usr/sbin/useradd -c Machine -d
/var/lib/nobody -s /bin/false %m$
domain logons = No
domain master = No
security = user
wins support = No
usershare max shares = 100
netbios name = marcslaptopsuse
admin users = marc, root
hide dot files = No
usershare allow guests = No
[slash]
comment = Root Dir
path = /
read only = No
inherit acls = No
available = Yes
browseable = Yes
writable = Yes
inherit permissions = No
force user = root
Appreciate any help offered and thanks in advance... Marc...
--
"The Truth is out there" - Spooky
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 isyears 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>
Maybe Matching Threads
- For what reason the "official" Wine does not support USB ?
- Forum archive reveals email addresses, PLEASE STOP IT.
- Samba/Cups issues across a network
- how to replace a single backward slash with a double backward slash?
- how to replace a single forward slash with a double backward slash in a string?