07.06.2014 Views

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Two extra shares, and their associated directories, were also created:<br />

[netlogon]<br />

comment = Network Logon Service<br />

path = /var/lib/samba/netlogon<br />

guest ok = yes<br />

writable = no<br />

share modes = no<br />

[profiles]<br />

comment = Profile Share<br />

path = /var/lib/samba/profiles<br />

read only = No<br />

profile acls = Yes<br />

The home directories for all users must also be created (as /var/lib/samba/profiles/user),<br />

and each of them must be owned by the matching user.<br />

11.5.2. Samba Client<br />

The client features in Samba allow a Linux machine to access Windows shares and shared printers.<br />

The required programs are available in the smbfs and smbclient packages.<br />

11.5.2.1. The smbclient Program<br />

The smbclient program queries SMB servers. It accepts a -U user option, for connecting to the<br />

server under a specific identity. smbclient //server/share accesses the share in an interactive<br />

way similar to the command-line FTP client. smbclient -L server lists all available (and<br />

visible) shares on a server.<br />

11.5.2.2. Mounting Windows Shares<br />

The smbmount command allows mounting a Windows share into the Linux filesystem hierarchy.<br />

smbmount //arrakis/shared /shared -o credentials=/usr/local/etc/smb-<br />

➥ credentials<br />

Example 11.29<br />

Mounting a Windows share<br />

The /usr/local/etc/smb-credentials file (which must not be readable by users) has the following<br />

format:<br />

284 The Debian Administrator's Handbook

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!