LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 10-27-2004, 11:29 AM   #1
Dr Gutiemouth
Member
 
Registered: Oct 2004
Location: ohio
Distribution: Whitebox, Gentoo, XP,
Posts: 57

Rep: Reputation: 15
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!
 
Old 10-27-2004, 11:38 AM   #2
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
did you edit fstab correctly?

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

--after reboot, has fstab contents changed?
 
Old 10-27-2004, 12:22 PM   #3
Dr Gutiemouth
Member
 
Registered: Oct 2004
Location: ohio
Distribution: Whitebox, Gentoo, XP,
Posts: 57

Original Poster
Rep: Reputation: 15
//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?
 
Old 10-27-2004, 01:35 PM   #4
Dr Gutiemouth
Member
 
Registered: Oct 2004
Location: ohio
Distribution: Whitebox, Gentoo, XP,
Posts: 57

Original Poster
Rep: Reputation: 15
is that right? should i try it again?
 
Old 11-01-2004, 10:45 AM   #5
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
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
 
Old 11-01-2004, 10:47 AM   #6
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
making WiFi settings in /etc/network/interfaces permanent Lleb_KCir Linux - General 3 05-11-2005 12:22 AM
permanent mount of win shares DJOtaku Linux - General 3 02-01-2005 12:52 AM
how do i make network setting permanent? taoweijia Linux - Newbie 3 02-23-2004 12:02 AM
How can I permanent mount an exixting Partition mwj Linux - General 9 01-23-2004 01:48 AM
permanent mount jerrod Linux - Newbie 4 04-14-2003 07:36 PM


All times are GMT -5. The time now is 08:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration