Map a network drive
Hello all
I have a Fedora box that has a bunch of shares on it that runs samba. This is all it does. It is called server. I have a Mephis 6 box that I want to be able to map shares on the fedora box when it starts up. I put this in my fstab smbmount //SERVER/notes /mnt/notes -o username=jack,password=jack12 That did not work so I removed the smbmount and put this in //SERVER/notes /mnt/notes -o username=jack,password=jack12 when the system starts up it still does not mount the share I was going thru a system logfile and it said error //SERVER/notes /mnt/notes -o username=jack,password=jack12 mount: only root can do that. Everything I have read said to do it this way. Also the notes share and all the shares are public anyone can access them and everybody has access to the server so the passwords are a formality so we don't care if they are cleartext in fstab. Is there some other way to do this on startup other then fstab? I was thinking I would like it if some shares like the /home/jack on the Fedora server was mapped to the Mephis box when jack logged in as well as the other shares like notes,music,videos,etc I can mount the shares after I log in but when all is said and done there will e about 4-8 folders on the server I access so I would rather they get mounted when I start up. |
One place this can be done is in the users .bash_profile file. This is run everytime the user logs in. So you should be able to map/mount your directories this way.
|
Quote:
Code:
//192.168.0.53/f /mnt/livingroom/f smbfs fmask=0777,dmask=0777,credentials=/etc/cred 0 0 Code:
# |
Map a drive
haertig
The method you posted worked Thanks. The reason I was thinking of not doing it with fstab is that 2 maybee 3 people will use the system with different lagon names and I was going to have the system also map there home folder on the server. So I did not want one user to have another users home folder mounted. But Threy all now how to browse so they just manually connect if they need the home folders. |
All times are GMT -5. The time now is 11:22 AM. |