LinuxQuestions.org
Review your favorite Linux distribution.
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 01-21-2008, 03:45 AM   #1
stuartornum
Member
 
Registered: Feb 2006
Posts: 44

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


Hi,

I have opensuse 10.3, and another server running samba.

As root I can issue the command:

Code:
mount -t cifs //192.168.3.201/shared /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
zephyrcat
Member
 
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:

http://www.tuxfiles.org/linuxhelp/fstab.html

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:

http://www.linuxplanet.com/linuxplan...orials/2047/3/

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

Rep: Reputation: 40
Quote:
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:
http://www.linuxplanet.com/linuxplan...orials/2047/3/
Yup mount network shares in /etc/fstab. Been doing it for years:

Code:
//192.168.1.1/Files /mnt/server/files cifs uid=linuxuser,credentials=/etc/.cifspw,workgroup=baileysoft,user,rw,0 0
//192.168.1.1/Music /mnt/server/music cifs uid=linuxuser,credentials=/etc/.cifspw,workgroup=baileysoft,user,rw,0 0
 
Old 01-22-2008, 11:28 PM   #4
kingzog
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.
 
  


Reply

Tags
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


All times are GMT -5. The time now is 09:12 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration