LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 11-14-2005, 03:30 AM   #1
redrobin77
Member
 
Registered: Jan 2004
Location: Germany
Distribution: RH9, Suse 9.3, FC3, Suse10.1, WinXP ;)
Posts: 103

Rep: Reputation: 15
Newly created File/directory permissions?


Hi,

I have 2 users who use samba to access the server.
They both want to share each others files/directories.
The problem is that when one creates a file, for example, the other can only read it but not edit.( only talking about new files ).

How can I do a setting to make all files created by both of them to be
editable by both?

I see that when they create a file, it's owner is that user and the group fdoes not get the "samba-group" Is that the problem?

thanks.
rr77
 
Old 11-14-2005, 03:49 AM   #2
meranto
LQ Newbie
 
Registered: Nov 2005
Location: /home/ridderkerk/NL or /work/heerhugowaard/NL
Distribution: Gentoo
Posts: 20

Rep: Reputation: 0
Re: Newly created File/directory permissions?

Quote:
Originally posted by redrobin77
Hi,

I have 2 users who use samba to access the server.
They both want to share each others files/directories.
The problem is that when one creates a file, for example, the other can only read it but not edit.( only talking about new files ).

How can I do a setting to make all files created by both of them to be
editable by both?

I see that when they create a file, it's owner is that user and the group fdoes not get the "samba-group" Is that the problem?

thanks.
rr77
That might be the problem, but that depends on what the permissions of the file are, check that with "chmod"

Make sure that both users are in the same group and that the file can be modified by everyone in that group.
 
Old 11-14-2005, 03:55 AM   #3
redrobin77
Member
 
Registered: Jan 2004
Location: Germany
Distribution: RH9, Suse 9.3, FC3, Suse10.1, WinXP ;)
Posts: 103

Original Poster
Rep: Reputation: 15
msybe I was not clear. sorry.

i am talking only about NEW files that are created....

Already existing files have been chmod'd to 775 so that all users in the group 'samba-group' can rw.
but when a newly created file, the file is created as user="user1" and group="user1". No the common group "samba-group".


that is the problem I think.
 
Old 11-14-2005, 04:55 AM   #4
sikofitt
LQ Newbie
 
Registered: Sep 2005
Location: brentwood, ca
Distribution: kubuntu desktop, ubuntu server, debian desktop
Posts: 21

Rep: Reputation: 15
Quote:
Originally posted by redrobin77
msybe I was not clear. sorry.

i am talking only about NEW files that are created....

Already existing files have been chmod'd to 775 so that all users in the group 'samba-group' can rw.
but when a newly created file, the file is created as user="user1" and group="user1". No the common group "samba-group".


that is the problem I think.
i could be wrong but i believe you need to edit the smb.conf under the particular directory.
add the lines

Code:
force create mode = "the permissions, like 0775" and force directory mode = 0775 or whatever.
but also try the command man smb.conf
 
  


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
How to set permissions for newly created dirs? z-vet Linux - General 2 12-04-2004 08:06 AM
permissions for newly created files dialbat Linux - General 2 10-04-2004 02:58 PM
Accessing newly created partitions cragwolf Slackware 5 09-13-2004 08:19 PM
How to permanently set permissions on all files created in a directory? BrianK Linux - General 8 06-24-2004 04:06 PM
snort error: newly created file is older than distributed files! rufassa Linux - Security 1 11-07-2003 08:53 AM


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