"mount" as a user
James Pifer
jep at obrien-pifer.com
Sat Feb 26 13:03:13 UTC 2005
>
> To automatically mount an smb file system at boot, I have added the following
> line in my /etc/fstab file. You can specify User and Group ownership by
> number. (Replace "500" with the value correct for your system.) Get those
> from the /etc/passwd and /etc/group files respectivly.
>
> //10.7.7.20/Data /mnt/WinXP smbfs uid=500,gid=500,credentials=/etc/smb.txt
>
> The "credentials" paramenter points to file with the following format:
> username = YourUserName
> password = YourPassword
>
> The drawback here is having your UserID and password in plain text file. I at
> recommend:
> chmod 600 /etc/smb.txt
> chown root:root /etc/smb.txt
>
> So it's at least only readable by root.
Adding uid,gid works great.
Thanks to everyone for the help.
James
More information about the fedora-list
mailing list