This month, “On the Desktop” is something of a grab bag of tricks to make your personal computing life easier.
Trick One: Unbelievably Brain-Dead Easy SAMBA and NFS File Sharing
If you want to share data between your Windows boxes and your Linux machine and use your home Linux box as a simple file server for, you can spend several afternoons reading a pile of manuals, or you can use my brain-dead simple /etc/samba/smb.conf and /etc/exports files.
If you just want to have a couple of simple shares in Samba, like access to the root of the /home directory, or even direct access to the entire root filesystem, with no worries about setting user permissions and access control lists, use a smb.conf file that looks like this:
[global] workgroup = workgroup cups options = raw map to guest = Bad User domain master = no restrict anonymous = no preferred master = no max protocol = NT server signing = Auto domain logons = no local master = yes passdb backend = smbpasswd netbios name = sles9 encrypt passwords = yes
[myshare] path = / read only = no force user = root force group = root guest account = root case sensitive = no guest only = yes guest ok = yes browseable = yes printable = no
With this configuration, I’ve set up a single file share, myshare, which forces all connections to be the local root user, thus eliminating the need for any…
Please log in to view this content.
Not Yet a Member?
Register with LinuxMagazine.com and get free access to the entire archive, including: