Quote:
Originally posted by flynnhandley
I decided to bite the bullet and RTFM, heres the answer for any one else with the same prob
[fibremux@localhost fibremux]$ su
Password:
[root@localhost fibremux]# mount -t smbfs -o username=<username>,password=<password> //<server>/<share> /<localdir>
|
Alternatively, you could add a line like this to /etc/fstab:
//<server>/<share> /<localdir> smbfs noauto,users,rw,username=<username>,password=<password>
(Your web browser might wrap the above, but it is all a single line.)
Then, you can mount and unmount the share as a normal user. I have my laptop setup this way, so that I can access the W2k file server at work. I also put a link to /mnt/docs in my home directory, so I can just type:
[benji@localhost]$ mount docs
and have access to the share. The only hazard is that the username and password can be seen by anyone who types "cat /etc/fstab". For this reason, I created a special account just for my Linux file access - with a password I don't use anywhere else.
|)
|)enji