Samba

Difference between revision 2 and current revision

Summary: Creating a Samba share that's writeable by everyone: # groupadd smbguest # useradd -g smbguest -d /dev/null -s /bin/false smbguest # mkdir . . .

No diff available.

Creating a Samba share that's writeable by everyone:

 # groupadd smbguest
 # useradd -g smbguest -d /dev/null -s /bin/false smbguest
 # mkdir /share
 # chown -R smbguest:smbguest /share

Create /etc/smb.conf with the following contents and restart Samba:

 [global]
        security = share
        guest account = smbguest
        netbios name = TELISSERVER
        socket options = TCP_NODELAY IPTOS_LOWDELAY
        workgroup = TELIS
 
 [public]
        guest ok = yes
        guest only = yes
        path = /share
        read only = no

Then mount the share under Windows as \\ip.address.to.server\public

On Linux, you have several options. If you use the Gnome desktop, go to Places -> Connect to Server. Then fill in the hostname and share name 'public'. A shortcut appears on your desktop.

The other way is to mount it on the commandline:

 $ sudo mount -t cifs -o uid=bartvk,gid=bartvk //servername/sharename /mnt/myshares