![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Running file without execute permissions | rakeshou | UNIX for Dummies Questions & Answers | 3 | 10-16-2008 05:51 PM |
| To give the "unzip" permissions & "create" file permissions | Mike1234 | HP-UX | 3 | 03-02-2008 05:34 PM |
| awk and execute app | tyger52 | Shell Programming and Scripting | 0 | 12-06-2007 09:43 PM |
| script execute or no execute | Kespinoza97 | Shell Programming and Scripting | 4 | 06-23-2007 10:27 AM |
| Need to execute 2 scripts, wait, execute 2 more wait, till end of file | halo98 | Shell Programming and Scripting | 1 | 08-01-2006 05:42 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi,
We have 2 users and one directory (dir). One user is admin user and other use r is operator user. who is responsible for just executing the scripts e.g. startWeblogic and stopWeblogic etc, we want to restrict this operator user in such a way that he can only execute these files and he should NOT be able to delete or change these files but he should be able to VIEW these files I want that one user (user1) 1) should be able to run/execute any script/file 2) should NOT be able to delete these files 3) should NOT able to change these files 4) should be able to write a new file in directory as when user is executing the script then it creates log file so it is required else script will fail 5) should be able to view the files I tried like this created a directory with user2(admin) with all files 1) chmod -R 775 <dir> 2) cd <dir> 3) find . -type f | xargs chmod 755 Now my user1 who is in same group as user2 is able to do the following 1) able to run/execute any script/file 2) able to delete these files [he is able to delete files ]3) NOT able to change these files 4) able to write a new file in directory as when user is executing the script then it creates log file 5) able to view the files my only worry is step 2, i dont want this user to delete these files but when i give 755 permision then he is able to delete if i give some other permission then he is not able to execute scripts. Please let me know what is the best way and how can we achieve it Thanks Rel |
|
||||
|
Look in to setting up sudo on the box. Sudo is what I have used to give particular users permissions to run scripts and start and stop applications without compromising the system. It may even be included in your linux or unix distribution.
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|