| Blogs | Classifieds | Downloads | FlashChat | Gallery | Googlemap | Invite Friends | Links | Projects | Reviews | Wiki |
| |||||||||
Welcome to the pSeries Tech Forums,
our free peer-based support site for administrators, engineers and architects working with IBM pSeries servers and software. You are currently viewing our site as a guest which gives you limited access to view most discussions, articles, tutorials and access our other free features. By joining our community you will be able to collaborate with administrators, engineers and architects charged with designing, delivering or maintaining IBM pSeries server environments. Founded by a recognized IBM pSeries consultant and IBM Redbook author, pSeries Tech Forums was developed with the single mission of bringing IBM pSeries professionals together into a single self-help community. Registration is fast, simple and absolutely free to all IT professionals with responsibility for or interest in IBM pSeries servers. We invite you to join our community today! If you have any problems with the registration process or your account login, please contact contact support. |
| Our Sponsors | |
| | |
| Want to advertise? | |
![]() |
| | LinkBack | Thread Tools |
|
#1
| ||||
| ||||
hi, there is a file whichh is basically a executable file (NMON). till now only root user can run that file being an owner of that file. now i wanted to give permision to another user that is user1 that he can also execute nmon file which is in /usr/bin but no 1 else can run that. for that i was trying chown command but how can i add both the users that is root and user1 in 1 command of chown. if i m wrong kindly suggest me wht to do to allow them only. rite now this is the permision set to that file. DR-U-HR-DB: /usr/bin # ls -al nmon -rwxr----- 1 root staff 539536 Jul 14 17:34 nmon |
|
#2
| ||||
| ||||
A file only belongs to one user. I cannot belong to more than one user. Each file has rights for the owning user in this case root, the owning group - in this case staff, and all other users. What you are truying to do needs to be done using the group permissions. It can be done simply by: mkgroup users=root,user1 nmongrp chown root:nmongrp /usr/bin/nmon chmod 750 /usr/bin/nmon
__________________ Ross Mather, IBM AIX IT Specialist. That said anything I say here is my own opinion and not anything that you can ever hold against IBM. Ohhh and don't forget that I make mistakes too.... |
![]() |
| Bookmarks |
| Tags |
| file, rights |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |