1748139 Members
3857 Online
108758 Solutions
New Discussion юеВ

Root Level Access

 
Yogesh Gaikwad
Occasional Contributor

Root Level Access

Hello,
I want to add a user who should have a write permission acroos the system. But he shouldnt have write or excecute permission. How to do the same?
I think we can set umask value to other as 400 so that the newly created user will get read access. Is this ans correct? Wil it impact current user permissions?
3 REPLIES 3
Avinash20
Honored Contributor

Re: Root Level Access

You question seems to be confusing

"I want to add a user who should have a write permission acroos the system. But he shouldnt have write or excecute permission"

Function of umask is when the particular user creates a directory(777 - umask) or file(666 - umask) it will be created with the particular permissions
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Mark McDonald_2
Trusted Contributor

Re: Root Level Access

umask is not the correct tool

umask 400 - will mean that the user creates files with some strange permissions eg:

baspb326:/home/mmcdonal# umask 400
baspb326:/home/mmcdonal# touch crap2
baspb326:/home/mmcdonal# ls -l crap2
--w-rw-rw- 1 mmcdonal other 0 Apr 1 10:24 crap2

perhaps you should look at chroot and link the files that you want him to be able to read (I assume that's what you meant)
Yogesh Gaikwad
Occasional Contributor

Re: Root Level Access

I think i have not put my question properly.
publishing query again