LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-14-2008, 02:23 PM   #1
SGlassman
Member
 
Registered: May 2007
Posts: 42

Rep: Reputation: 16
Question Unable to modify a directory listed under a samba share even if...


Even if I've changed the owner, group and permissions. I can't then go into a windows box and change the name of the folder... I thought it was something set in Samba or maybe SELinux, but at the moment. I'm miffed. Any clues?

I am currently trying to solve this myself for kicks.
 
Old 09-15-2008, 11:12 AM   #2
CRC123
Member
 
Registered: Aug 2008
Distribution: opensuse, RHEL
Posts: 374
Blog Entries: 1

Rep: Reputation: 32
Please post the entry for this share in smb.conf and also post the permissions you have tried.
 
Old 09-17-2008, 06:23 AM   #3
SGlassman
Member
 
Registered: May 2007
Posts: 42

Original Poster
Rep: Reputation: 16
First off I was told by the person who set this up that it has nothing to do with Samba at all. He then told me to think about how people are trying to access the file. This lead me to think that maybe there is an ACL in place somewhere.
 
Old 09-17-2008, 08:35 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 18,174

Rep: Reputation: 2682Reputation: 2682Reputation: 2682Reputation: 2682Reputation: 2682Reputation: 2682Reputation: 2682Reputation: 2682Reputation: 2682Reputation: 2682Reputation: 2682
Also post the /etc/fstab
 
Old 09-19-2008, 09:49 AM   #5
SGlassman
Member
 
Registered: May 2007
Posts: 42

Original Poster
Rep: Reputation: 16
The share in question has an fstab entry as a default and is a soft link to the original share.


/dev/VolGroup00/public /space ext3 defaults 1 2

I was told to think about how users are accessing the file. Now the permissions for this main directory have root as owner and group member. I know that permissions are rwxr_xr_x. So I can create a subdirectory as root and chown the owner and group member fo the newly created subdirectory but the new owner can't change the subdirectory afterward.. even if I set perms. to 777.
 
Old 09-19-2008, 10:00 AM   #6
CRC123
Member
 
Registered: Aug 2008
Distribution: opensuse, RHEL
Posts: 374
Blog Entries: 1

Rep: Reputation: 32
Quote:
Originally Posted by SGlassman View Post
The share in question has an fstab entry as a default and is a soft link to the original share.


/dev/VolGroup00/public /space ext3 defaults 1 2

I was told to think about how users are accessing the file. Now the permissions for this main directory have root as owner and group member. I know that permissions are rwxr_xr_x. So I can create a subdirectory as root and chown the owner and group member fo the newly created subdirectory but the new owner can't change the subdirectory afterward.. even if I set perms. to 777.
The enclosing directory's (/space) permissions must be set to allow 'others' to write to the directory. You can fix this by changing permissions on the enclosing directory.

BUT, I think a better way is to make the group of the /space directory 'users' or some group that all users who need access to this directory are a part of. Then , give full rights only to group.
 
  


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 - Unable to modify TDB passwd ! Error: Record does not exist essdeeay Linux - Software 1 12-06-2019 04:46 PM
Large file sizes listed incorrectly in a samba share Pain++ Linux - Software 3 05-02-2008 06:01 AM
I can't write on share samba directory maal Linux - Software 10 12-18-2006 07:57 AM
can't create/modify files in a samba share deadslota Linux - Newbie 4 08-07-2004 10:26 PM
samba share directory SchwipSchwap Linux - Newbie 1 05-18-2003 07:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:49 PM.

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