Once I've finished testing this howto, I'll post the correct version.

For one: uid=admin is a user on the Linux PC (which we don't need to use).

Also, it's "usermod -aG nas admin", otherwise it replaces the list of
groups, instead of appending it.


On Fri, March 28, 2008 5:32 pm, Malcolm Hunter wrote:
> 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
>


-- 
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