Re: Changing user while being root will leave you to the root homedir.

2019-03-19 Thread Qiming Ye
Have you tried: # su - chomwitt - Qiming On 2019-03-19 10:57+0200, aprekates wrote: > In a new debian 9.8 installation i noticed that: > > root@s165:~# pwd > /root > > root@s165:~# su chomwitt > chomwitt@s165:/root$ > > ..and from there i cant even execute ls. > > $ man ls > man: can't chan

Re: Changing user while being root will leave you to the root homedir.

2019-03-19 Thread aprekates
Thanks. It worked. Although its still strange why debian 9.8 behaves differently when i execute su foouser as root. On 19/3/19 11:21 π.μ., Qiming Ye wrote: Have you tried: # su - chomwitt - Qiming On 2019-03-19 10:57+0200, aprekates wrote: In a new debian 9.8 installation i noticed that:

Re: Changing user while being root will leave you to the root homedir.

2019-03-19 Thread Reco
Hi. On Tue, Mar 19, 2019 at 10:57:04AM +0200, aprekates wrote: > In a new debian 9.8 installation i noticed that: > > root@s165:~# pwd > /root > > root@s165:~# su chomwitt > chomwitt@s165:/root$ > > ..and from there i cant even execute ls. It's expected, su(1) says that: The current e

Changing user while being root will leave you to the root homedir.

2019-03-19 Thread aprekates
In a new debian 9.8 installation i noticed that: root@s165:~# pwd /root root@s165:~# su chomwitt chomwitt@s165:/root$ ..and from there i cant even execute ls. $ man ls man: can't change directory to '/root': Permission denied man: command exited with status 255: sed -e '/^[[:space:]]*$/{ N; /