LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 12-15-2010, 02:30 AM   #1
elainelaw
Member
 
Registered: Jan 2008
Posts: 258

Rep: Reputation: 30
Change file permission


I have a file its file mode is 111 , a user want to update this file , but they are in different group , so can not update it , can advise if I want this user can read and write this file but remains the premission unchanged ( file mode : 111 ) , what can i do ?

Thanks
 
Old 12-15-2010, 02:43 AM   #2
jalalski
LQ Newbie
 
Registered: Aug 2004
Posts: 9

Rep: Reputation: 1
Nothing.
Permissions '111' mean that no-one can read or write to the file. This is Linux security at work.
 
Old 12-15-2010, 02:59 AM   #3
infernoexpert
LQ Newbie
 
Registered: Dec 2010
Posts: 2

Rep: Reputation: 1
Quote:
Originally Posted by jalalski View Post
Nothing.
Permissions '111' mean that no-one can read or write to the file. This is Linux security at work.
exactly ...
 
Old 12-15-2010, 04:34 AM   #4
elainelaw
Member
 
Registered: Jan 2008
Posts: 258

Original Poster
Rep: Reputation: 30
Add a system group and assign it to the user and change the file owner group , is it ok ?

Thx
 
Old 12-15-2010, 06:05 AM   #5
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,062

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
Presumably, there was some reason that the permissions were originally set this way; maybe it was a mistake, maybe there is a risk if the permissions are not very restricted.

Once you have considered that question, you should be in a position to say what the permissions should be (who should be able to do what).


Then a reading of 'man chmod' should help you to do what you want. You should not just open up permissions on a file 'because someone wants it' without considering the potential consequences.
 
  


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
Any log file for checking file permission change history in RHEL 5.1? bilalcochin Linux - Newbie 3 04-02-2010 09:57 AM
change file permission of a mouse device file permanently alexandre_fs Linux - General 5 01-09-2007 06:30 AM
mass file permission change help mattd7591 Linux - Security 4 07-31-2006 10:03 AM
how to change the file permission ?? AK prince Slackware 17 08-05-2005 12:16 PM
Cannot Change File Permission dsuratman Linux - Newbie 12 11-03-2003 01:47 PM

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

All times are GMT -5. The time now is 02:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration