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
Permission 711---RWX---X---X bobo UNIX for Dummies Questions & Answers 6 03-29-2006 12:50 PM
Permission? rahulrathod UNIX for Dummies Questions & Answers 1 02-13-2006 12:31 PM
permission help eloquent99 UNIX for Dummies Questions & Answers 2 02-12-2003 04:30 AM
su permission siavoush UNIX for Dummies Questions & Answers 12 06-16-2002 12:56 AM
Ftp permission 644 cagnod UNIX for Advanced & Expert Users 4 04-10-2002 07: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 12-28-2004
dozy dozy is offline
Registered User
  
 

Join Date: Nov 2002
Location: in my house
Posts: 37
permission

Is it possible to set owner to a group? I need to have a group own a process, because there will be 3 diffrent persons that will start and stop this process. They can not use the same users cause och back logging. we need to know who end when a certian user start/stops processes.
  #2 (permalink)  
Old 12-28-2004
seg seg is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2003
Posts: 260
Set the group of the file that needs to be executed to the group used by the three users, and chmod the file to... 770.

example:
-wrxwrx--- root jgroup /usr/bin/tail

in /etc/group (your milage may vary)
be sure john, brad and dave are in group jgroup.
Change as needed.

`ps` will show which user has executed the file, but only root and those in the group will be able to use the file.

Cheers,
-Seg

ps: to log who used it create a script file to echo $user $tty `date` to a file then execute the process...

Quote:
#!/bin/csh
echo "$user $tty `date`" >> /var/log/jgroup.log
/usr/bin/jgroupfile
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 12:38 AM.


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