LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 06-28-2017, 11:27 AM   #1
phipm1
LQ Newbie
 
Registered: May 2017
Posts: 20

Rep: Reputation: Disabled
samba permissions


I'm a newbie with SAMBA

We need to have user be able to change permissions on files to 755 or 700


We have a mount

nasfs001:/ifs/isilon-regn/stholdco/nfs/intwebqa/fs02 400G 55G 346G 14% /htdocs



htdocs is where all the content is for the various web sites

within htdocs there are sub directories that have their own samba share created. when files are being dragged and dropped in to the share the permissions are changed to 777

Some files need to be ran as 755 or 700 etc, so we need to be able to change the permissons.



Root does allow us to change ownership of files but not the permission (chmod).

Even when the owner of the files can't change ownership or permission.


Is there a way of setting up the share to allow chmod?


this is how the drives are set up now

one share has interherit on and one does not. Neither can chmod the files



isilon-regn-1# cd /ifs/isilon-regn/stholdco/nfs/intwebqa/fs02
isilon-regn-1# ls -led
drwxrwxrwx + 26 889 888 639 Jun 20 13:33 .
OWNER: user:889
GROUP: group:888
CONTROL:dacl_auto_inherited,sacl_auto_inherited
0: user:889 allow dir_gen_read,dir_gen_write,dir_gen_execute,std_write_dac,delete_child
1: group:888 allow dir_gen_read,dir_gen_write,dir_gen_execute,delete_child
2: everyone allow dir_gen_read,dir_gen_write,dir_gen_execute,delete_child,object_inherit,container_inherit
3: group:Administrators allow inherited dir_gen_all,object_inherit,container_inherit,inherited_ace
4: user:889 allow inherited dir_gen_all,inherited_ace
5: creator_owner allow inherited dir_gen_all,object_inherit,container_inherit,inherit_only,inherited_ace
6: group:Users allow inherited dir_gen_read,dir_gen_execute,object_inherit,container_inherit,inherited_ace
7: group:Users allow inherited std_synchronize,add_file,add_subdir,container_inherit,inherited_ace

isilon-regn-1# cd /ifs/isilon-regn/stholdco/nfs/intwebdev/fs02
isilon-regn-1# ls -led
drwxrwxrwx + 25 889 888 625 May 11 09:27 .
OWNER: user:889
GROUP: group:888
CONTROL:dacl_auto_inherited,sacl_auto_inherited
0: user:889 allow dir_gen_read,dir_gen_write,dir_gen_execute,std_write_dac,delete_child
1: group:888 allow dir_gen_read,dir_gen_write,dir_gen_execute,delete_child
2: everyone allow dir_gen_read,dir_gen_write,dir_gen_execute,delete_child
3: group:Administrators allow inherited dir_gen_all,object_inherit,container_inherit,inherited_ace
4: user:889 allow inherited dir_gen_all,inherited_ace
5: creator_owner allow inherited dir_gen_all,object_inherit,container_inherit,inherit_only,inherited_ace
6: group:Users allow inherited dir_gen_read,dir_gen_execute,object_inherit,container_inherit,inherited_ace
7: group:Users allow inherited std_synchronize,add_file,add_subdir,container_inherit,inherited_ace
 
Old 06-29-2017, 01:47 PM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,734

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
I don't know squat about samba, but I find this documentation about samba users and security. HTH
 
Old 06-29-2017, 02:00 PM   #3
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,674

Rep: Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712
I discourage my clients from using SAMBA for these kinds of applications. I recommend WinSCP3 and sftp access instead: it does allow you to set permissions.

Windows and Linux permissions and ACL sets differ greatly, and few tools translate properly. SAMBA is crippled this way simply because SMB/CIFS (upon which SAMBA is based) has no way to resolve the differences. WinSCP3 using sftp does.
 
  


Reply



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
[SOLVED] Samba and permissions ( permissions seems ok but wont work anyway ) spooksman Linux - Networking 1 04-10-2014 09:58 AM
RHEL 5.3 Samba DR Restore - Permissions Screwy on Samba shares mudman69 Red Hat 3 05-12-2009 10:56 AM
Samba domain member server (DMS) group permissions in network with a Samba PDC srosa Linux - Networking 0 05-01-2006 05:55 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

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

All times are GMT -5. The time now is 03: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
Open Source Consulting | Domain Registration