LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-11-2006, 09:08 AM   #1
Stefan J
Member
 
Registered: Oct 2006
Location: Leicestershire, England
Distribution: Ubuntu 7.04
Posts: 45

Rep: Reputation: 16
mounting network shares (KDE)


I have a line in my fstab which i though would mount a network share during startup, it does'nt I have to use the command sudo mount //mnt/Server_media.

After booting into KDE I have a desktop icon refering to the mount, but if click on it i get an error saying only 'root can mount' I then use the above command to get it working.

How can i get this to mount during bootup ?

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda1 / ext3 nouser,defaults,errors=remount-ro,atime,auto,rw,dev,exec,suid 0 1
/dev/hda5 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,atime,noauto,rw,dev,exec,suid 0 0
/dev/hda4 /media/FAT vfat iocharset=utf8,umask=000,uid=0,gid=0,auto,rw,nouser 0 0
//Server1/Media /mnt/Server_media smbfs credentials=/etc/samba/user,rw,uid=stefan 0 0
__________________
 
Old 11-11-2006, 10:36 AM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Add the umask option to your fstab line to allow all to write. Also the user or users option depending on the system for mounting. Example of one.
Code:
//lcomp15/DDRIVE  /mnt/comp15_smbfs/lcomp15_smbfs_ddrive              smbfs   umask=000,users,noauto,credentials=/home/user58/credentials/win2000credentials 0 0
Brian
 
Old 11-13-2006, 10:48 AM   #3
Stefan J
Member
 
Registered: Oct 2006
Location: Leicestershire, England
Distribution: Ubuntu 7.04
Posts: 45

Original Poster
Rep: Reputation: 16
ok thanks, tried this line without success.

//Server1/Media /mnt/Server_media smbfs umask=000,user,noauto,credentials=/etc/samba/user 0 0

(user is a file with my username and password for my samba account on the server)

I still have to mount it with

sudo mount /mnt/Server_media

Stefan
 
Old 11-15-2006, 04:13 PM   #4
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
The mount command permissions may only allow root to use. One can change the permissions ( not recommended ) or edit /etc/sudoers file with the visudo tool and allow you the user to use the command with or without your user password.

Still I don't think will help in a gui mount. Set sudoers file to allow you the user access without a password for the mount command and see if that works after a restart. Last thought is maybe a PAM security issue.

Brian
 
Old 11-16-2006, 02:59 PM   #5
Stefan J
Member
 
Registered: Oct 2006
Location: Leicestershire, England
Distribution: Ubuntu 7.04
Posts: 45

Original Poster
Rep: Reputation: 16
Thanks Brian, I've now changed my desktop to Gnome and that mounts everything just fine.
 
Old 11-16-2006, 04:05 PM   #6
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Glad you have it working but should work under KDE. Maybe you need to update KDE. The version you have may have a bug in it.

Brian
 
  


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
Mounting Windows network shares at boot time? lowpro2k3 Slackware 6 05-16-2006 09:14 PM
Mounting smb shares john8675309 Linux - Software 3 09-25-2005 09:54 PM
mounting and viewing network shares GraemeK Linux - Networking 4 01-27-2004 03:23 AM
Mounting Samba shares Gnome vd KDE Paul Parr Linux - General 3 09-06-2003 12:36 PM
Mounting windows network shares at boot TennesseeJeff Linux - Networking 1 05-24-2002 12:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:41 AM.

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