Some refinements:

On Fri, March 28, 2008 5:00 pm, Malcolm Hunter wrote:
> First, I suggest putting a line for the NAS in /etc/hosts:
> e.g. 192.168.1.18  nas
>
>
> Then add the following to /etc/fstab:

//nas/data     /mountpoint    smbfs
credentials=/home/admin/.smbpasswd,uid=admin,gid=nas,fmask=770,dmask=770 
0 0

(Note you I've changed the numbers to the actually user and group names)

Add the new group called nas:
groupadd nas

Make admin a member of this group:
usermod -G nas admin
(Use this command above to give all users of the nas access to it)

>
> Finally create the credentials file (/home/admin/.smbpasswd) with the
> following contents:
> username=admin
> password=admin
>
> And make it read-only for admin and root with the command:
> chmod 600 /home/admin/.smbpasswd


-- 
Web Development, Technical Copy-Editing & Proofreading

KDE Proofreading Team
KDE British English Translation Team

http://l10n.kde.org/team-infos.php?teamcode=en_GB


_______________________________________________
Peterboro mailing list
[email protected]
https://mailman.lug.org.uk/mailman/listinfo/peterboro

Reply via email to