- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Change permission to 755
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-23-2011 11:52 PM
тАО02-23-2011 11:52 PM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-23-2011 11:55 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2011 12:10 AM
тАО02-24-2011 12:10 AM
Re: Change permission to 755
If you want to change permission of link only use
chmod -h 755 /db/uv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2011 12:17 AM
тАО02-24-2011 12:17 AM
Re: Change permission to 755
I've try the chmod 755. Is not working. I want to change the symbolic link file not the source file.
Regards,
Chui
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2011 12:40 AM
тАО02-24-2011 12:40 AM
Re: Change permission to 755
lchmod 755 symlinkfile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2011 12:53 AM - last edited on тАО08-25-2011 02:24 PM by Kevin_Paul
тАО02-24-2011 12:53 AM - last edited on тАО08-25-2011 02:24 PM by Kevin_Paul
Re: Change permission to 755
This thread explaining the use of lchmod.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2011 02:42 AM
тАО02-24-2011 02:42 AM
Re: Change 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2011 05:56 PM
тАО02-24-2011 05:56 PM
Re: Change permission to 755
What is the command to change the ownership of the symbolic link?
Regards,
Chui
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2011 06:13 PM
тАО02-24-2011 06:13 PM
Re: Change permission to 755
chown -h own:grp symbolic link
The below url for reference.
http://docs.hp.com/en/B2355-90680/chown.1.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2011 12:16 AM
тАО02-25-2011 12:16 AM
Re: Change permission to 755
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2011 12:35 AM
тАО02-25-2011 12:35 AM
Re: Change permission to 755
The umask mask command sets a new file mode creation mask **for the current shell execution environment**.
In your case you are setting **whole** file creation for your active session to 777 file mode, this is very risky concerning system security.
Please carefully read the documentation about:
#man umask
Security practices suggest an umask 022 mode.
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2011 12:43 AM
тАО02-25-2011 12:43 AM
Re: Change permission to 755
Thanks
Manix
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2011 12:56 AM
тАО02-25-2011 12:56 AM
Re: Change permission to 755
I've done that on the umask command. It won't corrupt the file. What is the different between the lchmod and the umask? Any manual.
Regards,
Chui
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2011 01:36 AM
тАО02-25-2011 01:36 AM
Re: Change permission to 755
Looks at what Clay stated.
The system call chmod() follows the symbolic link and thus does not operate on the symbolic link directly. Similarly, the symlink() system call does not allow a mode argument so that don't work neither. However, there is an UNDOCUMENTED system call, lchmod(), that does operate directly on the symbolic link.
umask - set or display the file mode creation mask.
The mask affects the initial value of the
file mode (permission) bits for subsequently created files.
So umask sets the default file permissions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2011 01:51 AM
тАО02-25-2011 01:51 AM
Re: Change permission to 755
Thanks for the help.
Regards,
Chui
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2011 12:28 PM
тАО02-25-2011 12:28 PM
Re: Change permission to 755
Only if you remove then recreate the symlink.
Since you only want to change umask for this one file, you may want to put this in a script so the old umask is restored.