I can open the desktop using startx
command in other tty
I have tried a lot of methods:
- chown the
Xauthority
file
- chmod the
/tmp
- check the
/etc/environment
file
but all these methods do not work.
When I type su root
command, it will give the following output:
bash: groups: command not found
Command 'lesspipe' is available in the following places
* /bin/lesspipe
* /usr/bin/lesspipe
The command could not be located because '/bin:/usr/bin' is not included in the PATH environment variable.
lesspipe: command not found
Command 'dircolors' is available in the following places
* /bin/dircolors
* /usr/bin/dircolors
The command could not be located because '/usr/bin:/bin' is not included in the PATH environment variable.
dircolors: command not found
Command 'dirname' is available in the following places
* /bin/dirname
* /usr/bin/dirname
The command could not be located because '/usr/bin:/bin' is not included in the PATH environment variable.
dirname: command not found
Command 'dirname' is available in the following places
* /bin/dirname
* /usr/bin/dirname
The command could not be located because '/bin:/usr/bin' is not included in the PATH environment variable.
dirname: command not found
Command 'dirname' is available in the following places
* /bin/dirname
* /usr/bin/dirname
The command could not be located because '/bin:/usr/bin' is not included in the PATH environment variable.
dirname: command not found
Command 'dirname' is available in the following places
* /bin/dirname
* /usr/bin/dirname
The command could not be located because '/bin:/usr/bin' is not included in the PATH environment variable.
dirname: command not found
when I type groups, lesspipe, dirname
, these commands still work.