- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how assign permission to users.
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
Forums
Discussions
Discussions
Discussions
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
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
08-02-2007 09:44 PM
08-02-2007 09:44 PM
how assign permission to users.
Thank you,
Ramana
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2007 09:48 PM
08-02-2007 09:48 PM
Re: how assign permission to users.
change owner of a file:
#chown username filename
change group of a file
#chgrp groupname filename
change permission
#chmod 751 filename
for more infos check the manpages of each command
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2007 09:54 PM
08-02-2007 09:54 PM
Re: how assign permission to users.
chown(1) can also change the group:
$ chown username:groupname filename
>#chmod 751 filename
You can also use symbolic names:
$ chmod u=rwx,g=rx,o=x filename
If you just want to add execute to everyone:
$ chmod a+x filename
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2007 10:15 PM
08-02-2007 10:15 PM
Re: how assign permission to users.
here r stands for read, w for write and x for execute.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2007 10:39 PM
08-02-2007 10:39 PM
Re: how assign permission to users.
thank you,
Rmana
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2007 10:45 PM
08-02-2007 10:45 PM
Re: how assign permission to users.
(Typically you assign permission first to the file.)
You are going to have to show the command and error message
If you linked and got unsats, your executable won't have execute permission.
If you create a script, you have to add execute permission.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2007 10:55 PM
08-02-2007 10:55 PM
Re: how assign permission to users.
$ touch blah.sh
$ ./blah.sh
sh: ./blah.sh: Execute permission denied.
$ ll blah.sh
-rw-r--r-- 1 oracle dba 0 Aug 3 12:55 blah.sh
$ chmod 751 blah.sh
$ ll blah.sh
-rwxr-x--x 1 oracle dba 0 Aug 3 12:55 blah.sh
$ ./blah.sh
hope this helps