![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Processes by User's names | kartikkumar84@g | UNIX for Dummies Questions & Answers | 2 | 05-22-2008 01:59 PM |
| ps results - to show user's ps only | rdns | UNIX for Dummies Questions & Answers | 13 | 10-15-2007 01:36 PM |
| user's right | iwbasts | SUN Solaris | 2 | 06-08-2006 12:54 AM |
| Auditing User's actions | Timberland | HP-UX | 3 | 01-28-2006 09:53 AM |
| tracing a user's session | hmaiida | HP-UX | 2 | 11-27-2004 09:48 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
|||||
|
Another way: You may set the SUID bit to those programs, owned by the user you want them to be run as. So, if you have programe1 and programe2, and want them to be run as user1 then: Code:
user2> ls -l programe1 programe2 -rwsr-xr-x 1 user1 user1 0 Jan 17 11:26 programe1 -rwsr-xr-x 1 user1 user1 0 Jan 17 11:26 programe2 user2> ./programe1 I do not kike to use SUID unless it's necessary, but it's a possible and easy solution. |
|
|||||
|
Quote:
|
|
|||||
|
yes i tried with both the option "1 and l" Code:
su -l kanth -c "programe1" which gives "usage: su [ - ] user [sh options]" error. i tried with Code:
su kanth -lc "programe1" which asks password ( which i don't know) pls help me out on this |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|