LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Change file permission (https://www.linuxquestions.org/questions/linux-newbie-8/change-file-permission-850328/)

elainelaw 12-15-2010 02:30 AM

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

jalalski 12-15-2010 02:43 AM

Nothing.
Permissions '111' mean that no-one can read or write to the file. This is Linux security at work.

infernoexpert 12-15-2010 02:59 AM

Quote:

Originally Posted by jalalski (Post 4191991)
Nothing.
Permissions '111' mean that no-one can read or write to the file. This is Linux security at work.

exactly ...

elainelaw 12-15-2010 04:34 AM

Add a system group and assign it to the user and change the file owner group , is it ok ?

Thx

salasi 12-15-2010 06:05 AM

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.


All times are GMT -5. The time now is 03:46 PM.