LinuxQuestions.org
Register a domain and help support LQ
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 10-02-2003, 08:06 AM   #1
djtsa
LQ Newbie
 
Registered: Sep 2003
Distribution: redhat
Posts: 7

Rep: Reputation: 0
Samba permissions


Hi

I recently moved data over from one server to another using scp

command : scp -r root@blah.blah /blah .

it copied all the files over , i recreated the samba shares.

Problem is now , some of the directories users are getting "permission denied" errors.

security = share in my smb.conf file (basically I cloned the whole smb.conf file from the old server! notedbviously changed server name etc).ownership is also set to nobody:nobody

is there something i'm missing , not doing right?

losing alot of hair over this , please help!

djt
 
Old 10-02-2003, 10:56 AM   #2
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
do you mean some directories under shares? or some shares are now "perm denied"?

Must be directory permissions if the samba config has not changed, but my security = users so there might be something "security = share" specific.

Last edited by fatgod; 10-02-2003 at 10:59 AM.
 
Old 10-02-2003, 11:12 AM   #3
Medievalist
Member
 
Registered: Aug 2003
Distribution: Dead Rat
Posts: 175

Rep: Reputation: 37
post your smb.conf
 
Old 10-02-2003, 04:07 PM   #4
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
And your directory permissions and the line your using to mount it.
 
Old 10-03-2003, 01:59 AM   #5
djtsa
LQ Newbie
 
Registered: Sep 2003
Distribution: redhat
Posts: 7

Original Poster
Rep: Reputation: 0
ok , here's the shares section of my smb.conf file

[Docs]
comment = Documents
path = /data/documents
public = yes
writable = yes
create mode = 0775
directory mode = 0770
printable = no

that basically is the conf I use for all my shares

security is also set to share (not user)

I changed all the dir permissions:

chmod -R a+rwx,g+rx,o+rx

The really weird thing is , I can create a directory on the share , but only I can access it , but another user can actually delete that dir??!!!?? really odd....

Please help (management is jumping on me)

Hope this sheds more light....

Ta
 
Old 10-03-2003, 03:10 AM   #6
levian
LQ Newbie
 
Registered: Aug 2003
Location: kadin, jkt
Distribution: Dolphin,Shrike,98
Posts: 20

Rep: Reputation: 0
...its a bit hard to imagine your condition...
however, what permission do you have in your Docs shared directory?
is it 777?
 
Old 10-03-2003, 07:22 AM   #7
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
Dude, you should be reading the smb.conf man page for this, it's really good, but anyway...

The things you need to check:
/data/documents/
My understanding is that these files are owned by nobody. when a user creates a file it is nobody:nogroup 0775. and a dir is 0770. If everyone was connecting as nobody then you would not have a problem. But I dont think they are, I think that your setup is specifying that users write files as nobody:nogroup but they are still connecting as themselves which is why your permissions are screwed.

How is smb.conf dealing with usernames? post the entire file, without the shares section.
 
  


Reply


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
Samba Permissions? ezra143 Linux - Networking 1 02-22-2005 01:26 PM
SAMBA says 'Samba Server is not accebile, you might have no permissions' Ahmad Gurchani Linux - General 1 01-01-2005 10:34 AM
Samba and permissions Phaethar Linux - Software 2 06-17-2004 08:03 AM
Samba and permissions ezra143 Linux - Software 8 11-05-2003 05:39 PM
Samba Permissions ppuddick Linux - Networking 2 08-02-2002 03:03 PM


All times are GMT -5. The time now is 05:30 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration