Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-21-2008, 03:45 AM   #1
Registered: Feb 2006
Posts: 44

Rep: Reputation: 15
Mount windows/samba share as non root user


I have opensuse 10.3, and another server running samba.

As root I can issue the command:

mount -t cifs // /home/joebloggs/MyShare/ -o username=myuser,password=mypass
I can only issue this command as root. As root I can edit / delete the share fine.

However, when I am user "joebloggs" I can view the shared area, but cannot make changes..?

Is there a way to permanently mount the share as user "joebloggs" ?

Thank you
Old 01-21-2008, 10:16 AM   #2
Registered: Jun 2007
Posts: 107

Rep: Reputation: 15
I can't speak from experience since I never have never had a problem like this, but I believe you can use the /etc/fstab file to have a partition automatically mounted. I found a tutorial here:

Hopefully that will help!

EDIT: Oops, I missed that you were trying to do this with a network share. Now I have no experience with this x2. :-) Anyway, try this link:

Last edited by zephyrcat; 01-21-2008 at 10:20 AM. Reason: missed a detail
Old 01-22-2008, 08:44 PM   #3
Registered: Nov 2005
Location: East Coast, USA
Distribution: Fedora 18, Slackware64 13.37, Windows 7/8
Posts: 380

Rep: Reputation: 41
Originally Posted by zephyrcat View Post
EDIT: Oops, I missed that you were trying to do this with a network share. Now I have no experience with this x2. :-) Anyway, try this link:
Yup mount network shares in /etc/fstab. Been doing it for years:

// /mnt/server/files cifs uid=linuxuser,credentials=/etc/.cifspw,workgroup=baileysoft,user,rw,0 0
// /mnt/server/music cifs uid=linuxuser,credentials=/etc/.cifspw,workgroup=baileysoft,user,rw,0 0
Old 01-22-2008, 11:28 PM   #4
LQ Newbie
Registered: Jun 2006
Distribution: Gentoo
Posts: 20

Rep: Reputation: 0
Are the permissions set correctly on the Samba server? I don't have too much experience here, but I do see a writable flag being set in my smb.conf file.

The other thing I would check is the directory and file permissions inside the mounted directory, to make sure your non-root user has the propper permissions.


samba mount permission

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
mount samba share as guest user twac Linux - Software 3 06-05-2007 01:55 PM
user can't mount windows share Abyteapart Slackware 17 11-15-2006 12:08 PM
Mount samba share at boot with user write permissions Wynd Linux - Software 2 08-21-2006 11:48 PM
Cannot mount samba share from windows XP Astro Linux - Software 2 12-18-2004 11:26 AM
can't mount smb share as non-root user nixinbarrie Linux - Networking 5 09-27-2004 08:51 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:24 PM.

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