"mount" as a user
James Pifer
jep at obrien-pifer.com
Tue Mar 1 20:37:28 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.
Everything is working but there's one thing that is still annoying, the
Time Out. From a command line it's not a big deal, but in a gui
application such as Evolution, it's a pain to try to attach something to
your message from one of the mounts to find that it was unmounted
because it was idle too long. Or from a file manager, if you want to go
look for something, again it's not mounted because of inactivity.
How are you dealing with that? Long timeout? Is there a no timeout
setting?
Thanks,
James
More information about the fedora-list
mailing list