Article ID: 120682, created on Mar 22, 2014, last review on May 11, 2014

  • Applies to:
  • Virtuozzo 6.0
  • Virtuozzo containers for Linux 4.7
  • Virtuozzo hypervisor


Executing su - root command inside of container results into a following error:

# vzctl enter 100
entered into Container 100
CT-100-bash-4.1# su - root
: No such file or directory


Error No such file or directory indicates that /etc/passwd file is malformed. It is necessary to check that record for root user is correct.

Content even might look fine if printed on a screen:

CT-100-bash-4.1# grep ^root /etc/passwd

However, checking /etc/passwd with vi utility displays ^M symbol in the end of line(s). E.g.:


This issue takes place because /etc/passwd file was edited on a Microsoft Windows environment.

You can also verify /etc/passwd file using hexdump utility:

Correct example:

# cat /etc/passwd | grep ^root | hexdump -c
0000000   r   o   o   t   :   x   :   0   :   0   :   r   o   o   t   :
0000010   /   r   o   o   t   :   /   b   i   n   /   b   a   s   h  \n

Incorrect example (file was edited in Windows):

# cat /etc/passwd | grep ^root | hexdump -c
0000000   r   o   o   t   :   x   :   0   :   0   :   r   o   o   t   :
0000010   /   r   o   o   t   :   /   b   i   n   /   b   a   s   h  \r
0000020  \n


Make sure /etc/passwd is correct and doesn't contain bogus symbols. Remove them with vi utility or recover the file from a backup if it is severely damaged.

Search Words

cannot su -

unable to perform su -

a26b38f94253cdfbf1028d72cf3a498b 2897d76d56d2010f4e3a28f864d69223 e8e50b42231236b82df27684e7ec0beb d02f9caf3e11b191a38179103495106f 0dd5b9380c7d4884d77587f3eb0fa8ef 0c05f0c76fec3dd785e9feafce1099a9 c62e8726973f80975db0531f1ed5c6a2

Email subscription for changes to this article
Save as PDF