- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Assign right permission
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
11-26-2004 04:39 PM
11-26-2004 04:39 PM
OS:redhat linux
I want to assign permission to a user whom can create and edit file in /home/www , can't delete and rename file in /home/www .
How can I assign permission ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2004 08:21 PM
11-26-2004 08:21 PM
Re: Assign right permission
# chattr +a /home/www/$filename
the /home/www dir should have rw permisissions for the user to create as many new files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2004 08:39 PM
11-26-2004 08:39 PM
Re: Assign right permission
#useradd jack
#su - jack
$touch test
$exit
#chattr +a /home/jack/test
#su - jack
$vi jack
I can't edit the file that test.......
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2004 01:22 PM
11-27-2004 01:22 PM
Solutionlog on as jack
type the command id
post that output to this thread.
ll -d /home/www
or
ls -ad /home/www
post that output to this thread.
Need complete information to solve the problem.
I could also use id output on the user that currently owns the folder /home/www
Thanks.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2004 02:50 PM
11-28-2004 02:50 PM
Re: Assign right permission
Thanks for your help
command output as following
id
uid=903(jack) gid=903(jack) groups=903(jack)
ll -d /home/www/
drwx------ 2 jack jack 4096 Nov 27 19:55 /home/www/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2004 04:08 PM
11-28-2004 04:08 PM
Re: Assign right permission
jack owns the directory and the permissions are read write execute on the /home/www directory.
If you still can't write to it, I would suggest the following:
As root, remove the directory, if its not empty. If it is empty, rename it.
cd /home
mv www www.old
mkdir www
chown jack.jack www
Then try to write a file.
That should work.
Because You're new, I'd just like to point out the way we reward people for good answers and help is by point assignment. Please consider this for this and your other threads.
More the others than this.
http://forums1.itrc.hp.com/service/forums/pageList.do?userId=CA1198336&listType=unassigned&forumId=1
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2004 04:45 PM
11-28-2004 04:45 PM