sudo/su command for Red Hat Server 5.4
Posted
by
rednaxela
on Super User
See other posts from Super User
or by rednaxela
Published on 2012-09-10T10:08:55Z
Indexed on
2012/09/11
3:40 UTC
Read the original article
Hit count: 467
Without going into too much detail, I need to execute one linux command on redhat with root user access. Red Hat Server 5.4 does not recognise the sudo command.
The command su can be used to switch to the root user on redhat, but su cannot be done in one line. For example the command:
su ; cd opt/storage/RootAccessFolder
will not work because this only switches you to root, then executes the cd command once you have logged out from the root user.
I guess what i'm looking for is like a..
sudo cd opt/storage/RootAccessFolder
but I say again, sudo doesn't work. Any ideas?
© Super User or respective owner