LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-20-2004, 04:30 PM   #1
anti_trend
Member
 
Registered: Nov 2003
Location: SoCal, USA
Distribution: Mandriva 2006, CentOS 4.2
Posts: 36

Rep: Reputation: 15
Samba permission problems


I'm formerly an NT guy, and I'm really having some difficulty with SMB. In trying to allow a user to have rwx privileges on certain folders, I'm experincing an issue where they can see all files in a directory, read them, write to them, but not delete them. This makes absolutely no sense to me, as the unix privileges are set for rwx for the users in question, and I can even delete the files/folders from the same user account(s) from within the server itself via ssh. Can anyone shed some light on this? Thanks!
 
Old 04-20-2004, 04:33 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Do you get any specific error messages?

What does your smb.conf flie looke like?
 
Old 04-20-2004, 04:39 PM   #3
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
My initial thought was that your user didn't have permission to write to the directory as you can't delete files if you can't write to the directory; but as you say it works via an ssh session it's got to be something Samba specific.

As david_ross said, give us the error message(s) you get, along with your smb.conf and possibly an ls -la of the directory in question. Details of the users and groups would be useful too.

cheers

Jamie...
 
Old 04-20-2004, 04:49 PM   #4
anti_trend
Member
 
Registered: Nov 2003
Location: SoCal, USA
Distribution: Mandriva 2006, CentOS 4.2
Posts: 36

Original Poster
Rep: Reputation: 15
Thanks much for the speedy replies. as for the smb.conf, here's a snippet. It's supposed to be one of the private users shares (of the type tyically mapped to "U:" in NT domains).
Code:
[Chris$]
	writeable = no
	public = no
	delete readonly = yes
	only user = yes
	path = /raid5/users/chris
	write list = chris
	force user = chris
	comment = Chris' private network share
	valid users = chris
	user = chris
And the following is supposed to be a group share that is accessible to the "slcc" group:
Code:
[SLCC]
	comment = SLCC Group Share
	public = yes
	writeable = no
	write list = @slcc
	path = /raid5/slcc
 
Old 04-20-2004, 04:53 PM   #5
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
Which version of Samba are you using? Are you sure that writeable = no isn't overriding write list = chris?

cheers

Jamie
 
Old 04-20-2004, 04:58 PM   #6
anti_trend
Member
 
Registered: Nov 2003
Location: SoCal, USA
Distribution: Mandriva 2006, CentOS 4.2
Posts: 36

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by jharris
Which version of Samba are you using? Are you sure that writeable = no isn't overriding write list = chris?
Yeah, unfortunately I'm positive. Even with that line commented out, I get the same exact results. Since I've given full ownership of that folder to user 'chris' in unix, I'm pretty sure it's a SMB problem...
 
Old 04-20-2004, 05:01 PM   #7
anti_trend
Member
 
Registered: Nov 2003
Location: SoCal, USA
Distribution: Mandriva 2006, CentOS 4.2
Posts: 36

Original Poster
Rep: Reputation: 15
BTW, I'm using Samba version 3.02
 
Old 04-21-2004, 12:26 PM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
What about the error message?

Anything in the samba logs?

Any chance of seeing the global section.
 
Old 04-21-2004, 03:24 PM   #9
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,508

Rep: Reputation: 100Reputation: 100
Hi

I once heard about something called a "sticky bit" in the file permissions that is (if I remember right) supposed to enable you to block deletion of a file to anybody except root.

I am guessing this "sticky bit" is preventing deletion? Google "linux file permission sticky" or "samba sticky" for more info.

I -think- this might be what the problems is you are having.
 
Old 04-21-2004, 04:39 PM   #10
anti_trend
Member
 
Registered: Nov 2003
Location: SoCal, USA
Distribution: Mandriva 2006, CentOS 4.2
Posts: 36

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by rylan76
...I once heard about something called a "sticky bit" in the file permissions that is (if I remember right) supposed to enable you to block deletion of a file to anybody except root...I am guessing this "sticky bit" is preventing deletion?...
Hmm, I don't think this is the case, as normal users can ssh into the box and delete the files in question (provided they have permission to do so). It's only through SMB that the problems occur; users can write, read, change, rename, but not delete. But, just to be sure, I did run a chmod -t on the folder in question, and no luck... *weird* I really do want to get this thing going. Even with SMB running a *nix --> NT conversion layer, it's stull much faster and more efficient than NT5 is natively.
 
Old 04-22-2004, 04:35 AM   #11
anti_trend
Member
 
Registered: Nov 2003
Location: SoCal, USA
Distribution: Mandriva 2006, CentOS 4.2
Posts: 36

Original Poster
Rep: Reputation: 15
Update: It seems the the problem deleting files is only limited to directories, as I can create and delete normal files at will. When I create directories over SMB however, I am able to rename and even move those directories, but not delete them. Help!
 
Old 04-22-2004, 08:50 AM   #12
Mashidar
LQ Newbie
 
Registered: Apr 2004
Location: Rockhampton Australia
Distribution: Mandrake 10 Official
Posts: 2

Rep: Reputation: 0
I have the same problem with a few exceptions. Windows to the smb share i can delete the folders but from Linux to smb share i can not.

The only way i could remove them remotely from my Mandrake box was to do a
# mv Folder \dev\null

I dont think this will help you but at least you arent alone now


Mashidar

Edit : Have you tried a drop and drag to the Trash Can?


Last edited by Mashidar; 04-22-2004 at 08:54 AM.
 
  


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 permission problem (probably) pingu Linux - Software 3 01-26-2010 01:23 AM
Samba permission hampeh Linux - Software 5 06-15-2005 09:41 AM
samba permission problems Jestrik Linux - Software 1 03-27-2004 11:34 AM
Samba Permission problems... Gattancha Linux - Software 6 07-07-2003 11:49 PM
SAMBA File Permission vcheah Linux - Software 1 11-27-2002 11:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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