[ic] Interchange installation

Daniel P. Zepeda interchange-users@interchange.redhat.com
Wed Nov 21 16:44:02 2001


On Wed, 21 Nov 2001, Hans Poo wrote:

> First of all in order to run a shell command as root you must know the root 
> pasword, and use the su (substitute user no super user) command. In your code 
> you miss a hypen(-)
> 
> su - -c "/etc/rc.d/init.d/interchange start" 

Actually, his original command will work. Calling su without the first 
dash doesn't transfer the current environment to the shell running
the command, while leaving the dash off does. 

The error

/root/.bashrc: permission denied 

is caused because the interchange start script su's into interch, which
can't read root's bashrc. This is only a minor annoyance in this case 
and can be fixed if you like in the interchange start script. 

> 
> more explicit
> 
> su - root -c "/etc/rc.d/init.d/interchange start" 
> 
> and is the same as:
> 
> su - root
> #/etc/rc.d/init.d/interchange start
> 
> Please check: 
> #man su
> 
> Hans Poo
> _______________________________________________
> interchange-users mailing list
> interchange-users@interchange.redhat.com
> http://interchange.redhat.com/mailman/listinfo/interchange-users
> 

-- 
"InterSAT Technical Support" <support@satx.net>