LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-18-2003, 02:47 AM   #1
monc
LQ Newbie
 
Registered: Oct 2003
Posts: 17

Rep: Reputation: 0
file rights changed?


Hello,

We have a group called admin if someone changes a office file and saves i t to the server the rights chnages from rwxrwx--- to rwxrw-r-- so other members of the group can't overwrite the file anymore.

I hope someone can help me with this problem?

monc
 
Old 11-18-2003, 01:13 PM   #2
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
I don't understand the problem? Is it because the permissions change thats the problem or is it that you want to know how to change the permissions?

This is a samba server? A little more info in that department would probably help.
 
Old 11-19-2003, 04:40 AM   #3
monc
LQ Newbie
 
Registered: Oct 2003
Posts: 17

Original Poster
Rep: Reputation: 0
It is a samba server. The workstations are windows 2000 en windows NT4

I want to know how i can configure the way users make a new file or directory. The problem is that if a users saves a file or directory to the server the rights changes from rwxrwx--- to rwxrw-r--.

So if a user makes a new file or directory i want automatically that the new file or directoy that the user made has the rights of rwxrwx---.
 
Old 11-19-2003, 10:20 PM   #4
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Actually the file is still writable by the user, group and other. The group doesn't have execute permission is what has changed.
rwxrwx--- to rwxrw-r-- r=read w=write x=execute user,group,other.

Quote:
From Samba Documentation
force create mode (S)

This parameter specifies a set of UNIX mode bit permissions that will always be set on a file created by Samba. This is done by bitwise 'OR'ing these bits onto the mode bits of a file that is being created or having its permissions changed. The default for this parameter is (in octal) 000. The modes in this parameter are bitwise 'OR'ed onto the file mode after the mask set in the create mask parameter is applied.

See also the parameter create mask for details on masking mode bits on files.

See also the inherit permissions parameter.

Default: force create mode = 000

Example: force create mode = 0755

would force all created files to have read and execute permissions set for 'group' and 'other' as well as the read/write/execute bits set for the 'user'.
Heres an example of what it would look like in /etc/samba/smb.conf for your rwxrwx--- permissions.
Code:
[homes]
        comment = Admin Group Home Directory
        path = /home/admin
        read only = No
        force create mode = 0770
I wrote this a 9:00PM. I will submit it as soon as LQ comes back online.
 
  


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
File rights from Windows workstation pdr Linux - Security 1 06-17-2005 12:30 PM
File Access Rights/Windows pdr Linux - Newbie 2 06-16-2005 02:00 AM
VSFTPD file rights hiasl Linux - Networking 2 11-15-2004 12:23 PM
default file rights with umask MartinMiller Linux - General 6 10-22-2003 11:04 AM
groups and file rights tstuhr Linux - Networking 1 10-05-2001 02:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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