Operating System - HP-UX
1825767 Members
1986 Online
109687 Solutions
New Discussion

change permission to nobody

 
SOLVED
Go to solution
file system
Frequent Advisor

change permission to nobody

Hi all experts.

can you give me advice to change the permission to nobody 60001

Before change to permission to Nobody.

[root@chat portal]# ll -a|more
total 1936
drwxrwxr-x 48 affis affis 4096 Mar 20 11:29 .

drwxr-xr-x 4 root root 4096 Mar 5 18:29 ..

drwxr-xr-x 4 affis affis 4096 Jan 16 19:22 ChartFX
-rw-r--r-- 1 affis affis 56 Feb 22 10:55 L4.html

========
After change permission to nobody
[root@chat portal]# ll -a|more
total 1936
drwxrwxr-x 48 affis affis 4096 Mar 20 11:29 .

drwxrwxr-x 6 60001 root 4096 Jan 16 17:34 ..

drwxr-xr-x 4 affis affis 4096 Jan 16 19:22 ChartFX
-rw-r--r-- 1 affis affis 56 Feb 22 10:55 L4.html

As you see I want 60001 permission is added to this directory.
3 REPLIES 3
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: change permission to nobody

It's a bit difficult to understand your question but it could be as simple as:
"chown 60001 ." --- assumming that you want to chown the current directory.

If it ain't broke, I can fix that.
Sunny Jaisinghani
Trusted Contributor

Re: change permission to nobody

Hi

To change the ownership of a directory come out of that directory and run

cd..
chown 60001:

the group part is not necessary though.

Regards
Dennis Handly
Acclaimed Contributor

Re: change permission to nobody

It appears you want to change the owner of the parent (..) of the current directory to 60001.

Instead of making this all complicated, why don't you go into the parent of the parent of this directory and do the ll -d of the specific name.

Note: typically, nobody is used when doing an NFS mount for root. I assume you want to change it because of that? You may want to also change the group of the file too??