LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-09-2010, 07:20 AM   #1
ashishkhandelwal
Member
 
Registered: Jan 2010
Posts: 34

Rep: Reputation: 15
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.
 
Old 01-09-2010, 08:05 AM   #2
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 779

Rep: Reputation: 135Reputation: 135
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.)
 
Old 01-09-2010, 08:12 AM   #3
emrysm
LQ Newbie
 
Registered: Jun 2009
Posts: 9

Rep: Reputation: 1
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
 
Old 01-29-2010, 01:37 AM   #4
shqnayaz
LQ Newbie
 
Registered: Sep 2009
Location: Bangalore
Distribution: RedHat Fedora Centos
Posts: 9

Rep: Reputation: 1
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
 
  


Reply

Tags
samba, server


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
permission denied as root user tuluks SUSE / openSUSE 6 12-18-2006 02:53 AM
Samba Permission Denied Adairen Linux - Software 6 12-11-2006 10:05 AM
whatever a non-root user does, he gets 'permission denied'. boazg Linux - Software 2 08-05-2005 09:17 AM
Permission denied using a user? SLACKER Alinuxnoob Linux - Newbie 7 10-05-2004 12:20 PM
winbind samba user vs. group permission denied prob pauljtester Linux - Software 1 09-30-2004 10:32 AM

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

All times are GMT -5. The time now is 01:27 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