PDA

View Full Version : SLES Root user Acess Issue.



mosinshaikh
18-Jun-2015, 07:55
Hi All,

I am very new to Linux OS (SLES), and i have to configure a VM with host OS SLES.
Actually we have one EMC product called EMC Asset management and planning(AMP),
It is a VM Image and its host OS is SUSE Linux Enterprise server,
now when I play the image in VMware player it gives me configuration console with options,
Networking, Reboot, Shutdown and asks to press alt F2 to login
now the AMP suite has provided one default user as "amp", so i log in through amp but this user does not have complete privileges, it login in a shell(cmd) with the prompt like "amp@linux-x2tb:~>", so am not able to run some commands, and i am not able to use the root user,
so please tell me how to give privileges to the "amp" user or tell me how to use root user, how to get its password.

help appreciated.

smflood
18-Jun-2015, 11:19
On 18/06/2015 08:04, mosinshaikh wrote:

> I am very new to Linux OS (SLES), and i have to configure a VM with host
> OS SLES.
> Actually we have one EMC product called EMC Asset management and
> planning(AMP),
> It is a VM Image and its host OS is SUSE Linux Enterprise server,
> now when I play the image in VMware player it gives me configuration
> console with options,
> Networking, Reboot, Shutdown and asks to press alt F2 to login
> now the AMP suite has provided one default user as "amp", so i log in
> through amp but this user does not have complete privileges, it login in
> a shell(cmd) with the prompt like "amp@linux-x2tb:~>", so am not able to
> run some commands, and i am not able to use the root user,
> so please tell me how to give privileges to the "amp" user or tell me
> how to use root user, how to get its password.

From the above and a quick search it seems EMC supply AMP as a virtual
appliance. There is the note "You can use a bare metal hypervisor such
as VMware ESXi to run the appliance from the location where the files
were downloaded. At the prompt, type a new root password" in
https://community.emc.com/servlet/JiveServlet/previewBody/11082-102-1-43802/EMC_AMP_User_Guide.pdf
but which prompt EMC mean I'm not sure.

Unless "sudo su -" works, asking for the "amp" user's password then I
think you will need to contact EMC.

HTH.
--
Simon
SUSE Knowledge Partner

------------------------------------------------------------------------
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below. Thanks.
------------------------------------------------------------------------

ab
18-Jun-2015, 12:02
On 06/18/2015 04:19 AM, Simon Flood wrote:
> Unless "sudo su -" works, asking for the "amp" user's password then I
> think you will need to contact EMC.

Exactly, and the only thing I'd add to this is that while you can work
around this, it may void support so if you care about support be SURE to
talk to EMC before trying any of the password-recovery techniques online.
If you do not care, you can do one of many things to get 'root' access,
most which include booting from a (for example) SLES install disk in
rescue or LiveCD mode From there you can set the 'rooot' user's password
by hacking the /etc/shadow file directly for the installed system, or
mount the installed filesystem and use the 'passwd' command directly.

If you search for existing threads, here or maybe even more-abundantly in
the openSUSE forums (https://forums.opensuse.org/), you should find a lot
of threads on the topic of password recovery. The steps are basically the
same regardless of system that you're on. Here is a Technical Information
Document (TID) from SUSE on the topic too:
https://www.suse.com/support/kb/doc.php?id=3003803

--
Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below...

mosinshaikh
23-Jun-2015, 11:20
On 18/06/2015 08:04, mosinshaikh wrote:

> I am very new to Linux OS (SLES), and i have to configure a VM with host
> OS SLES.
> Actually we have one EMC product called EMC Asset management and
> planning(AMP),
> It is a VM Image and its host OS is SUSE Linux Enterprise server,
> now when I play the image in VMware player it gives me configuration
> console with options,
> Networking, Reboot, Shutdown and asks to press alt F2 to login
> now the AMP suite has provided one default user as "amp", so i log in
> through amp but this user does not have complete privileges, it login in
> a shell(cmd) with the prompt like "amp@linux-x2tb:~>", so am not able to
> run some commands, and i am not able to use the root user,
> so please tell me how to give privileges to the "amp" user or tell me
> how to use root user, how to get its password.

From the above and a quick search it seems EMC supply AMP as a virtual
appliance. There is the note "You can use a bare metal hypervisor such
as VMware ESXi to run the appliance from the location where the files
were downloaded. At the prompt, type a new root password" in
https://community.emc.com/servlet/JiveServlet/previewBody/11082-102-1-43802/EMC_AMP_User_Guide.pdf
but which prompt EMC mean I'm not sure.

Unless "sudo su -" works, asking for the "amp" user's password then I
think you will need to contact EMC.

HTH.
--
Simon
SUSE Knowledge Partner

------------------------------------------------------------------------
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below. Thanks.
------------------------------------------------------------------------

Hi simon, thanks for the reply,
yes you are right EMC supply AMP as a virtual appliance, and yes one can use bare metal hypervisor to configure it, but i have used VMWare player so the information regarding hypervisor is of no use.

Now i know the password of "amp" user and the sudo su command is also working , now can you please tell me what i should do next to access the system as root user or with full privileges.
i have tried some command after sudo su command like # /etc/resolv.conf but is showed permission denied.
now what to do

regards

mosinshaikh
23-Jun-2015, 11:27
On 06/18/2015 04:19 AM, Simon Flood wrote:
> Unless "sudo su -" works, asking for the "amp" user's password then I
> think you will need to contact EMC.

Exactly, and the only thing I'd add to this is that while you can work
around this, it may void support so if you care about support be SURE to
talk to EMC before trying any of the password-recovery techniques online.
If you do not care, you can do one of many things to get 'root' access,
most which include booting from a (for example) SLES install disk in
rescue or LiveCD mode From there you can set the 'rooot' user's password
by hacking the /etc/shadow file directly for the installed system, or
mount the installed filesystem and use the 'passwd' command directly.

If you search for existing threads, here or maybe even more-abundantly in
the openSUSE forums (https://forums.opensuse.org/), you should find a lot
of threads on the topic of password recovery. The steps are basically the
same regardless of system that you're on. Here is a Technical Information
Document (TID) from SUSE on the topic too:
https://www.suse.com/support/kb/doc.php?id=3003803

--
Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below...

Hi ab, thanks for the reply,
actually we are not getting any support from EMC, and i tried some password recovery steps but i am facing "access denied", "permission denied" types of errors. i am not even able to access any file, please tell me some solution for it.

regards

ab
23-Jun-2015, 13:36
On 06/23/2015 04:24 AM, mosinshaikh wrote:
>
> Now i know the password of "amp" user and the sudo su command is also

If you can use sudo, especially to run the 'su' command, you are already
root. I've never sen a limitation on the 'su' command.

> working , now can you please tell me what i should do next to access the
> system as root user or with full privileges.
> i have tried some command after sudo su command like # /etc/resolv.conf
> but is showed permission denied.

If you are trying to execute (run) a text file, then of course you'll get
a permission denied problem, as you cannot execute non-executable files.
This file is not executable (it's the DNS client configuration on the box)
and should also be world-readable, so it is not a good test anyway.

Try these commands:



/usr/sbin/fdisk -l /dev/sda


--
Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below...

mosinshaikh
24-Jun-2015, 08:20
On 06/23/2015 04:24 AM, mosinshaikh wrote:
>
> Now i know the password of "amp" user and the sudo su command is also

If you can use sudo, especially to run the 'su' command, you are already
root. I've never sen a limitation on the 'su' command.

> working , now can you please tell me what i should do next to access the
> system as root user or with full privileges.
> i have tried some command after sudo su command like # /etc/resolv.conf
> but is showed permission denied.

If you are trying to execute (run) a text file, then of course you'll get
a permission denied problem, as you cannot execute non-executable files.
This file is not executable (it's the DNS client configuration on the box)
and should also be world-readable, so it is not a good test anyway.

Try these commands:



/usr/sbin/fdisk -l /dev/sda


--
Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below...

Hi ab, thanks for the reply,

I have tried the command that you gave, its not working please find attached image regarding the message I got.114

smflood
24-Jun-2015, 11:13
On 24/06/2015 08:24, mosinshaikh wrote:

> I have tried the command that you gave, its not working please find
> attached image regarding the message I got.114

The error "No such file or directory" is because with SLES fdisk is not
in /usr/sbin/ but /sbin/. What does "/sbin/fdisk -l /dev/sda" report?

HTH.
--
Simon
SUSE Knowledge Partner

------------------------------------------------------------------------
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below. Thanks.
------------------------------------------------------------------------