LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 03-24-2012, 09:35 PM   #1
gtrrockz84
Member
 
Registered: Dec 2011
Posts: 50

Rep: Reputation: Disabled
No write permission on folder even though samba.conf says otherwise


Hi,
I created a folder and made it read only. Then i said write list = me. When i log into the ubuntu/samba server with my credentials i still see the folder as read only. i dont understand. i expect me to be able to write but every one inlcuding me is read only .

i make changes to samba files using swat.

Not sure why the write list is not working. Please help. Thanks
 
Old 03-24-2012, 10:42 PM   #2
amenditman
Member
 
Registered: Apr 2008
Location: Valley of Gold
Distribution: Arch / Mepis
Posts: 58

Rep: Reputation: 16
I believe you are seeing a conflict between the linux native file permissions, which you set up as read only, and Samba.

If you change the file permissions, to allow you to read and write, then Samba will allow you to write.
The permissions are limited first by the linux native set up then samba can restrict or allow those permissions.
 
Old 03-25-2012, 09:01 AM   #3
gtrrockz84
Member
 
Registered: Dec 2011
Posts: 50

Original Poster
Rep: Reputation: Disabled
Thanks for your reply. So in effect samba permissions are meaningless? Because if I put rwx in linux no matter what setting I put in Samba its going to be rwx always? I'm just trying to understand. Also saying linux native you mean chmod right? Thanks a lot for your help!
 
Old 03-25-2012, 11:06 PM   #4
amenditman
Member
 
Registered: Apr 2008
Location: Valley of Gold
Distribution: Arch / Mepis
Posts: 58

Rep: Reputation: 16
If you put rwx in Linux, that is the max that Samba could grant (you could use Samba to restrict it). But if you put r-- in Linux, Samba cannot grant anything more than that no matter what you set up in your config.

Yes, by Linux native file permissions I mean the umask and chmod settings.
 
Old 03-26-2012, 08:58 AM   #5
gtrrockz84
Member
 
Registered: Dec 2011
Posts: 50

Original Poster
Rep: Reputation: Disabled
Sweet. It worked perfectly. Thanks a lot for your help! So I think its best to give rwx to everyone in linux and then just restrict it using samba. Thanks
 
Old 03-27-2012, 12:02 AM   #6
amenditman
Member
 
Registered: Apr 2008
Location: Valley of Gold
Distribution: Arch / Mepis
Posts: 58

Rep: Reputation: 16
The Unix security philosophy, which Linux follows, is to give the minimum permissions possible and have the user able to do the job.

As a blanket statement,
Quote:
So I think its best to give rwx to everyone in linux and then just restrict it using samba.
is asking for trouble and is poor security practice.
 
Old 03-30-2012, 12:01 PM   #7
WizadNoNext
Member
 
Registered: Nov 2009
Posts: 125

Rep: Reputation: 9
Samba permissions are on top of Linux permissions, but Linux permissions could limit Samba. Samba cannot limit Linux permissions, but setting read-only in Samba on folder with write permissions, would restrict permissions for Samba alone! Samba admin can write everywhere, where root can write, so even, if it do not have any write permissions, Samba admin still can write there, but in case of new files, they would with root owner, which for sure nobody likes.
 
  


Reply

Tags
write


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
how to share a folder in samba with no need of user password with write permission golden_boy615 Linux - Newbie 3 06-15-2011 08:09 PM
[SOLVED] write permission for users on NFS folder mahmoodn Linux - Server 9 12-29-2010 04:32 AM
want to avoid 777 permission, but want to write on folder suruchiparimu Linux - Newbie 10 02-09-2006 03:25 AM
Permission to write to folder Garoth Linux - Software 1 10-09-2004 11:41 PM
smb.conf file write permission jbraum Mandriva 3 01-09-2004 05:11 PM


All times are GMT -5. The time now is 12:49 AM.

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