LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-09-2006, 07:31 AM   #1
keogk
LQ Newbie
 
Registered: Sep 2005
Posts: 21

Rep: Reputation: 15
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.

Last edited by keogk; 11-09-2006 at 07:32 AM.
 
Old 11-09-2006, 11:15 AM   #2
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
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.
 
Old 11-09-2006, 11:41 AM   #3
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Quote:
Originally Posted by keogk
Is there some other way to do this on startup other then fstab?
Is there some reason you DON'T want to do this using fstab? If the issue is just that your current fstab entry doesn't work, here's the fstab entry I use for something similar (the sharing computer is "192.168.0.53" fixed IP, it's shared resource is "f", and local mountpoint is "/mnt/livingroom/f" ):
Code:
//192.168.0.53/f  /mnt/livingroom/f  smbfs  fmask=0777,dmask=0777,credentials=/etc/cred  0 0
And here's the (bogus-ized) contents of /etc/cred (file readable only by root):
Code:
#
# /etc/cred
#

# Credentials to mount Windows shares via SAMBA

username = arthur_dent
password = qn(*^#$w0rQ_7Wt5a]sr453*&^*(^TYG*2t66
 
Old 11-10-2006, 08:26 AM   #4
keogk
LQ Newbie
 
Registered: Sep 2005
Posts: 21

Original Poster
Rep: Reputation: 15
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.
 
  


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
map network drive watts3000 Linux - Newbie 1 09-09-2006 07:29 PM
Map network Drive across WAN mattp Linux - Networking 2 11-16-2005 07:27 PM
map network drive the_agent Linux - Networking 24 08-14-2004 03:34 PM
map network drive indy317 Linux - Networking 2 09-04-2003 04:07 PM
How do I map a network drive? MeatClown Linux - Distributions 2 08-10-2003 04:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:51 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