LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mount windows/samba share as non root user (https://www.linuxquestions.org/questions/linux-newbie-8/mount-windows-samba-share-as-non-root-user-615130/)

stuartornum 01-21-2008 03:45 AM

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

zephyrcat 01-21-2008 10:16 AM

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/

thund3rstruck 01-22-2008 08:44 PM

Quote:

Originally Posted by zephyrcat (Post 3030280)
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


kingzog 01-22-2008 11:28 PM

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.


All times are GMT -5. The time now is 07:54 PM.