LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   permanent network mount? (https://www.linuxquestions.org/questions/linux-networking-3/permanent-network-mount-247949/)

Dr Gutiemouth 10-27-2004 10:29 AM

permanent network mount?
 
i mount a network drive //gtp/Music
to the desktop folder /root/.gnome-desktop/Music
with the smbmount command

how can i mount this drive permanently even after reboots?

i tired editing my /etc/fstab with gedit but it didnt work.

thanks for your help!

secesh 10-27-2004 10:38 AM

did you edit fstab correctly?

--after editing, can you issue 'mount <mount point>' and it works?

--after reboot, has fstab contents changed?

Dr Gutiemouth 10-27-2004 11:22 AM

//gtp/Music /root/.gnome-desktop/Music smbfs username=<name>,password=<pass>,netdev,soft ,_intr1 0


i put this in, rebooted. but i didnt remount... once i remount will it stay so the next reboot it will be in the ~/.gnome-desktop/Music folder?

Dr Gutiemouth 10-27-2004 12:35 PM

is that right? should i try it again?

secesh 11-01-2004 09:45 AM

well, a couple things here -- i'm not familiar with all those options, but number one no-no is putting the logon credientals in the fstab file -- that's bad practice, because all users can see the contents.

number 2: do you use root as your regular user? -- this is bad, you should create an un-privledged account for day-to-day tasks.

here's an example for you, i have a similar setup, and my fstab contains the line:
Code:

//patsy/psc    /home/psc/smb    smbfs    uid=1000,gid=100,credentials=/root/patsy  0  0
where:
uid 1000 = user 'psc'
gid 100 = group 'users'

now the file /root/patsy contains:
Code:

username = psc
password = mypass

and has permissions 400 for root:root

secesh 11-01-2004 09:47 AM

fyi:

also, i have an entry for patsy (which has a static IP) in my /etc/hosts file, otherwise she should be referenced by IP, but that doesn't seem to be your problem


All times are GMT -5. The time now is 05:40 PM.