LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   permission denied to a samba server user (https://www.linuxquestions.org/questions/linux-newbie-8/permission-denied-to-a-samba-server-user-781027/)

ashishkhandelwal 01-09-2010 06:20 AM

permission denied to a samba server user
 
I have configured samba server.My requirement was that the path which i have to share was /srv/www/htdocs.With this the shared path for developer user was /srv/www/htdocs/projects.So in the smb.conf file i made the entries as following:

[share]

path=/srv/www/htdocs
valid user = root
browseable = yes
writable = yes

[developer]

path = /srv/www/htdocs/projects
browseable = yes
writable = yes

After that root user was able login to both /srv/www/htdocs and also project folder and developer was only able to login to projects folder.That was according to my requirement but now the problem is that when developer is trying to edit any file in projects folder he is getting error that you dont have permissions to change this file.But developer should be able to edit any files.What changes i need to do now.

ozanbaba 01-09-2010 07:05 AM

what gives the permission error?

actually try this on developer machine to post the error: echo 1 >> $FILE_ON_THE_SHARE (it won't overwride, it will try to append to the file.)

emrysm 01-09-2010 07:12 AM

What user account is developer logging in with? If the files are owned by root, he won't be able to access those files.

-Rigor

shqnayaz 01-29-2010 12:37 AM

As you mentioned valid users=root, non other will have access so in order to access by developer you need to add a user=developer or chown of file s to developer rather than root


All times are GMT -5. The time now is 10:01 PM.