Re: Impossible to change ownership of a file to user when user is UID 0

2023-05-02 Thread Andy Smith
Hello, On Mon, May 01, 2023 at 04:37:34PM +0200, Pierre Willaime wrote: > After some investigations, it is most likely a permission issue > > May 1 15:32:42 vm sshd[131848]: debug1: trying public key file > /home/user/.ssh/authorized_keys > May 1 15:32:42 vm sshd[131848]: debug1: fd 5 clearing

Re: Impossible to change ownership of a file to user when user is UID 0

2023-05-01 Thread Jeffrey Walton
On Mon, May 1, 2023 at 10:50 AM Greg Wooledge wrote: > > On Mon, May 01, 2023 at 04:37:34PM +0200, Pierre Willaime wrote: > > On this system (not installed by me), my user has an UID and GID of 0 in > > /etc/passwd. Several users share root privileges like this on the server. > > > > > root@

Re: Impossible to change ownership of a file to user when user is UID 0

2023-05-01 Thread Jeffrey Walton
On Mon, May 1, 2023 at 10:44 AM Pierre Willaime wrote: > > Hi, > > I am unable to connect via SSH without password (ssh-copy-id was launched) to > a VM running Debian Stable. > > After some investigations, it is most likely a permission issue > > May 1 15:32:42 vm sshd[131848]: debug1: trying pu

Re: Impossible to change ownership of a file to user when user is UID 0

2023-05-01 Thread Greg Wooledge
On Mon, May 01, 2023 at 04:37:34PM +0200, Pierre Willaime wrote: > On this system (not installed by me), my user has an UID and GID of 0 in > /etc/passwd. Several users share root privileges like this on the server. > > root@server:~# chown user /home/user/.ssh/authorized_keys > root