Change permission to 755

 
SOLVED
Go to solution
Chui Kock You_1
Frequent Advisor

Change permission to 755

Hi,

I want change from


[lpctst1]/usr2 # ll
total 0
lrwx------ 1 root sys 6 Feb 22 19:48 uv -> /db/uv

to

[lonpacdr]/usr2 #ll
total 6
drwxrwxr-x 8 root sys 1024 Oct 11 15:10 SBplus
drwxrwxr-x 8 root sys 1024 May 14 2010 SBplus.111010
drwxr-xr-x 2 root root 96 Jan 5 2007 lost+found
drwxrwxr-x 8 root sys 1024 Oct 11 15:10 lp.new
lrwxrwxrwx 1 root sys 6 Nov 10 2008 uv -> /db/uv

What is the command line to change the /db/uv file permission to 755? Any idea.

Regards,
Chui
15 REPLIES 15
Manix
Honored Contributor
Solution

Re: Change permission to 755

chmod 755 file_name is the method is itnot working for you ?

Thanks
Manix
HP-UX been always lovable - Mani Kalra
nijokj
Trusted Contributor

Re: Change permission to 755

In your case /db/uv is the original file and /usr2/uv is the symbolic link.
If you want to change permission of link only use
chmod -h 755 /db/uv
Chui Kock You_1
Frequent Advisor

Re: Change permission to 755

Hi Manix,

I've try the chmod 755. Is not working. I want to change the symbolic link file not the source file.

Regards,
Chui
nijokj
Trusted Contributor

Re: Change permission to 755

have you tried
lchmod 755 symlinkfile
nijokj
Trusted Contributor

Re: Change permission to 755

Dennis Handly
Acclaimed Contributor

Re: Change permission to 755

>What is the command line to change the /db/uv file permission to 755?

The permissions on a symlink don't really matter.
While there is a command to change the ownership of the symlink, there isn't for the permissions.
Chui Kock You_1
Frequent Advisor

Re: Change permission to 755

Hi Dennis,

What is the command to change the ownership of the symbolic link?

Regards,
Chui
nijokj
Trusted Contributor

Re: Change permission to 755

The command is
chown -h own:grp symbolic link
The below url for reference.
http://docs.hp.com/en/B2355-90680/chown.1.html
Chui Kock You_1
Frequent Advisor

Re: Change permission to 755

Hi Nijoki,

Can i used the command umask 000 to change from

[lpctst1]/usr2 # ll
total 0
lrwx------ 1 root sys 6 Feb 22 19:48 uv -> /db/uv

to

[lonpacdr]/usr2 #ll
total 6
lrwxrwxrwx 1 root sys 6 Nov 10 2008 uv -> /db/uv

Regards,
Chui