Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17837

service command not found on user "sudo su" => root but logging in directly as root works

$
0
0
ssh root@machineA root@machineA$ service Usage: service < option > | --status-all | [ service_name [ command | --full-restart ] ] 

ssh test@machineA test@machineA$: sudo su root@machineA$: service bash: service: command not found 

ssh test@machineA test@machineA$: sudo su - root@machineA$: service Usage: service < option > | --status-all | [ service_name [ command | --full-restart ] ] 

Why is that? What is broken here? I'm very confused. When I do "which bash" they are all "/bin/bash". This only happens to some of the old cent5, for cent6/7 sudo su have no problem running "service".

submitted by /u/juniorsysadmin1
[link] [comments]

Viewing all articles
Browse latest Browse all 17837

Trending Articles