LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 10: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, 10: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, 11:22 AM   #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, 12: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, 09: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, 09: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



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-10-2005 11:22 PM
permanent mount of win shares DJOtaku Linux - General 3 01-31-2005 11:52 PM
how do i make network setting permanent? taoweijia Linux - Newbie 3 02-22-2004 11:02 PM
How can I permanent mount an exixting Partition mwj Linux - General 9 01-23-2004 12:48 AM
permanent mount jerrod Linux - Newbie 4 04-14-2003 06:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:28 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
Open Source Consulting | Domain Registration