The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-27-2007
reldb reldb is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 20
Thumbs up help with permissions - execute but not delete

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
  #2 (permalink)  
Old 05-27-2007
reldb reldb is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 20
sticky bit

I am sure i can do this by setting sticky bit, but root is NOT doing this, so looking for some other option
  #3 (permalink)  
Old 06-01-2007
lazytech lazytech is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 39
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.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:06 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0