# SLES Root user Acess Issue.

**URL:** <https://forums.suse.com/t/sles-root-user-acess-issue/27168>\
**Category:** SLES Networking\
**Created:** [June 18, 2015, 9:55am UTC](https://forums.suse.com/t/sles-root-user-acess-issue/27168 "2015-06-18T09:55:41Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mosinshaikh](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@mosinshaikh](https://forums.suse.com/u/mosinshaikh)\
**Post date:** [June 18, 2015, 9:55am UTC](https://forums.suse.com/t/sles-root-user-acess-issue/27168/1 "2015-06-18T09:55:41Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![smflood](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/smflood/32/10576_2.png) [@smflood](https://forums.suse.com/u/smflood)\
**Post date:** [June 18, 2015, 1:19pm UTC](https://forums.suse.com/t/sles-root-user-acess-issue/27168/2 "2015-06-18T13:19:22Z")

</div>

On 18/06/2015 08:04, mosinshaikh wrote:  
[color=blue]

> 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.[/color]

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](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.

---

<div class="post-metadata">

**Author:** ![ab1](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@ab1](https://forums.suse.com/u/ab1)\
**Post date:** [June 18, 2015, 2:02pm UTC](https://forums.suse.com/t/sles-root-user-acess-issue/27168/3 "2015-06-18T14:02:27Z")

</div>

On 06/18/2015 04:19 AM, Simon Flood wrote:[color=blue]

> Unless “sudo su -” works, asking for the “amp” user’s password then I  
> think you will need to contact EMC.[/color]

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/](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](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…

---

<div class="post-metadata">

**Author:** ![mosinshaikh](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@mosinshaikh](https://forums.suse.com/u/mosinshaikh)\
**Post date:** [June 23, 2015, 1:20pm UTC](https://forums.suse.com/t/sles-root-user-acess-issue/27168/4 "2015-06-23T13:20:49Z")

</div>

[QUOTE=smflood;28439]On 18/06/2015 08:04, mosinshaikh wrote:  
[color=blue]

> 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.[/color]

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](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.  
------------------------------------------------------------------------[/QUOTE]

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

---

<div class="post-metadata">

**Author:** ![mosinshaikh](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@mosinshaikh](https://forums.suse.com/u/mosinshaikh)\
**Post date:** [June 23, 2015, 1:27pm UTC](https://forums.suse.com/t/sles-root-user-acess-issue/27168/5 "2015-06-23T13:27:15Z")

</div>

[QUOTE=ab;28441]On 06/18/2015 04:19 AM, Simon Flood wrote:[color=blue]

> Unless “sudo su -” works, asking for the “amp” user’s password then I  
> think you will need to contact EMC.[/color]

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/](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](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…[/QUOTE]

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

---

<div class="post-metadata">

**Author:** ![ab1](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@ab1](https://forums.suse.com/u/ab1)\
**Post date:** [June 23, 2015, 3:36pm UTC](https://forums.suse.com/t/sles-root-user-acess-issue/27168/6 "2015-06-23T15:36:26Z")

</div>

On 06/23/2015 04:24 AM, mosinshaikh wrote:[color=blue]

> Now i know the password of “amp” user and the sudo su command is also[/color]

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.  
[color=blue]

> 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.[/color]

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:

```auto
/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…

---

<div class="post-metadata">

**Author:** ![mosinshaikh](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@mosinshaikh](https://forums.suse.com/u/mosinshaikh)\
**Post date:** [June 24, 2015, 10:20am UTC](https://forums.suse.com/t/sles-root-user-acess-issue/27168/7 "2015-06-24T10:20:00Z")

</div>

[QUOTE=ab;28496]On 06/23/2015 04:24 AM, mosinshaikh wrote:[color=blue]

> Now i know the password of “amp” user and the sudo su command is also[/color]

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.  
[color=blue]

> 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.[/color]

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:

```auto
/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…[/QUOTE]

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.

---

<div class="post-metadata">

**Author:** ![smflood](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/smflood/32/10576_2.png) [@smflood](https://forums.suse.com/u/smflood)\
**Post date:** [June 24, 2015, 1:13pm UTC](https://forums.suse.com/t/sles-root-user-acess-issue/27168/8 "2015-06-24T13:13:41Z")

</div>

On 24/06/2015 08:24, mosinshaikh wrote:  
[color=blue]

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

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.
