Groups > SUSE Linux > SUSE Linux Enterprise server > How run application as user (not as root) ??




How run application as user (not as root) ??

How run application as user (not as root) ??
Sat, 01 Jul 2006 06:42:42 GMT
Need run some applycation as user (not as root).
Example need automate run /home/user1/bin/script  but run as USER1.

for run some applycations after system UP i use /etc/init.d/after/local and 
this work.
But after.local run applycation as root :(

Please, help me.

Serg 

Post Reply
How run application as user (not as root) ??
Sat, 01 Jul 2006 13:36:17 GMT
> Need run some applycation as user (not as root).
> Example need automate run /home/user1/bin/script  but run as USER1.
> 
> for run some applycations after system UP i use /etc/init.d/after/local and

> this work.
> But after.local run applycation as root :(
> 
> Please, help me.
> 
> Serg 
> 
> 

If you're talking about running your application as a non-root user from
the system startup, try "su - username 'command to run'" (use man su
to
check the syntax; this is from memory).

This should start a login shell for username, and then execute the single
command given in the single quotes as that user.

If you're saying that after the boot, the command always runs as root, then
check the permissions and ownership of the file. If it is owned by root and
has the setuid bit turned on, it will always run as root. You'd wnat to
Post Reply
about | contact