LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-03-2005, 01:01 AM   #1
asheesh.tyagi
Member
 
Registered: Apr 2005
Location: Delhi,India
Distribution: Red Hat
Posts: 35

Rep: Reputation: 15
sharing files read only for a group


Hi
i have installed redhat enterprise linux 3 on my system. now i want to give
a folder to a group of users where they can make files and read each others files, but cat not write to each others files.

if i give rwxr-x--- on the folder then no one can make files in his folder. and
if i give rwxrwx--- on this folder then any one can write to the files even they don't have write permission on files using :wq!(forcefully)in vi . gedit and other
editors says file is read only and can not write to the file.vi also says that file is read only but write to the file when i use :wq!.
folder owner is root and group is SALES.

all the users have their own private group and have a common group SALES
as their secondary group. i have not implemented SGID bit on that folder.
users umask is 002.

looking forward for response.

Thanking you

Ashish Tyagi
 
Old 09-03-2005, 01:29 AM   #2
tuXfree
LQ Newbie
 
Registered: Aug 2005
Location: Manila, Philippines
Distribution: Mandrake 10.1 (Official )
Posts: 8

Rep: Reputation: 0
Hello,

Try this kind of permission " drwxr-xr-x " to your folder, users belong to same groups can view the files in this folder but they cannot write even using "wq!" only root have a full access.

Hope it helps...
 
Old 09-03-2005, 02:51 AM   #3
otoomet
Member
 
Registered: Oct 2004
Location: Tartu, Århus,Nürnberg, Europe
Distribution: Debian, Ubuntu, Puppy
Posts: 619

Rep: Reputation: 45
Right to write in a folder gives you permission to remove files there, AFAIR. This may explain why vi and gedit behave differently.

Best,
Ott
 
Old 09-03-2005, 06:26 AM   #4
asheesh.tyagi
Member
 
Registered: Apr 2005
Location: Delhi,India
Distribution: Red Hat
Posts: 35

Original Poster
Rep: Reputation: 15
hi
thanks but is it not possible to give right to users to make files and write to their own files while others can only read the files.
 
  


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/group permissions and sharing kscott121 Linux - Software 3 10-15-2005 10:39 AM
mozzla problems-can not read files online, can not read attachments sarajevo Linux - Software 1 09-20-2005 06:58 PM
howto change GROUP permissions (have read/googled for hours) arjay Debian 8 08-09-2005 10:40 AM
mandrake 10.1 sharing files and internet sharing xfiles_arram Linux - Networking 0 05-21-2005 02:22 PM
Good read about teen in elite group overseeing Linux Kernel... Whitehat General 3 11-21-2003 02:42 PM

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

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