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 08:50 AM
Permission? rahulrathod UNIX for Dummies Questions & Answers 1 02-13-2006 08:31 AM
permission help eloquent99 UNIX for Dummies Questions & Answers 2 02-12-2003 12:30 AM
su permission siavoush UNIX for Dummies Questions & Answers 12 06-15-2002 08:56 PM
Ftp permission 644 cagnod UNIX for Advanced & Expert Users 4 04-10-2002 03:42 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-28-2004
Registered User
 

Join Date: Nov 2002
Location: in my house
Posts: 36
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
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.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 12-28-2004
seg seg is offline
Registered User
 

Join Date: Aug 2003
Posts: 58
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
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
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 04:32 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101