This should work for Ed's NAS.

Add the NAS to /etc/hosts:

192.168.1.18   nas


Add the following to /etc/fstab:

//nas/data   /mnt/mini   smbfs  
credentials=/root/.smbpasswd,gid=nas,fmask=770,dmask=770   0 0


Add the new group called nas:

groupadd nas


Make NAS users members of this group:

usermod -aG nas user1 user2 user3


Finally create the credentials file (/root/.smbpasswd) with the following
contents:
username=admin
password=admin


...and make it read-only for root only with the command:

chmod 600 /home/admin/.smbpasswd

Cheers,
Malc


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

Reply via email to