LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-25-2005, 03:42 PM   #1
stpierrc
LQ Newbie
 
Registered: Aug 2005
Distribution: Debian 3.1 Etch
Posts: 6

Rep: Reputation: 0
Question Multiple users need to access files


I am new to Linux, coming from a M$ and IBM world. I have multiple users on a Debian Sarge box that need to share files. When a new file is created or added to the shared directory I want the other user to be able to access the file for read and write. I tried to use setfacl at the directory level but it gets an "Operation not supported" error.

I do not want the owning user to have to change permissions for each new file. I want the system to just allow user1 and user2 to both access the files when they logon.

Does anyone have a suggestion on the fix for this. I am running Kernel=Linux 2.6.12-1-686 and GNOME desktops for both users. KDE is also installed on the machine.

StPierRC
-------------------------------------------------------
Just found the answer:
1. Create directory to be shared.
Applications/File Browser

2. Create a sharedgroup and add the users to it.
Applications/System Tools/Users and Groups
Enter the Root password

3. Change the permissions of the directory to "File group=sharedgroup" and "Special Flags" check "Set group Id".
From Nautilus (File Browser) right click the directory and
select permissions.
The "Set group Id" flag makes all new files owned by the group. So there is no need to change each file as it is created.

Last edited by stpierrc; 12-25-2005 at 05:53 PM.
 
Old 12-25-2005, 05:34 PM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Create a group to which all the users can belong, add each user to that (new) group, change the group ownership of the files to the (new) group, and change the file(s) group permissions to rwx.

Remember: In *nix systems, a user can be a member of multiple groups, so adding them to the (new) group will not change any of their other group permissions or memberships.
 
Old 12-25-2005, 05:58 PM   #3
stpierrc
LQ Newbie
 
Registered: Aug 2005
Distribution: Debian 3.1 Etch
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks PTrenholme, your answer was faster that my correction of my post.

The difference in our methods is that by setting the group id on the directory, only the existing files need to have the group changed. Your way was what I was doing and the new files could only be accessed for writing by the owner.
 
  


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
all users have access to root owned files sakatola Linux - Security 2 07-22-2005 12:45 AM
smb.conf entry for rwx access by multiple users thegnu Linux - Networking 1 05-13-2005 09:24 PM
Apache newb here ... allowing users to DL multiple files? TheVrolok Linux - Software 0 10-14-2004 01:12 PM
how to allow multiple users concurrent access to the sound card under linux kosaspree Linux - Hardware 2 09-17-2004 04:00 PM
need multiple users to have read/write access to a Quickbooks file at the same time. rbelknap Linux - Security 2 10-14-2003 10:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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