In the file /etc/passwd I set:
user:x:1001:1001:,,,:/home/user:/bin/false
In file /etc/shells I added
/bin/false
Also checked:
# ls -l /bin/false
-rwxr-xr-x 1 root root 22896 apr 1 06:09 /bin/false
But still can "user" log in as regular user through GUI. I would like to create user for FTP server (vsftpd), that works only with FTP and not as regular user.
I noticed, that at the file /etc/lightdm/users.conf there is written:
hidden-shells=/bin/false /usr/sbin/nologin
What does this mean? If /bin/false is hidden, then it is not active and user can still log in? I even tried to remove that /bin/false but it didn't help - still can user log in even its shell is /bin/false
There is also problem with shells.
In the file /etc/passwd I set: 1001:1001: ,,,:/home/ user:/bin/ false
user:x:
In file /etc/shells I added
/bin/false
Also checked:
# ls -l /bin/false
-rwxr-xr-x 1 root root 22896 apr 1 06:09 /bin/false
But still can "user" log in as regular user through GUI. I would like to create user for FTP server (vsftpd), that works only with FTP and not as regular user.
I noticed, that at the file /etc/lightdm/ users.conf there is written: shells= /bin/false /usr/sbin/nologin
hidden-
What does this mean? If /bin/false is hidden, then it is not active and user can still log in? I even tried to remove that /bin/false but it didn't help - still can user log in even its shell is /bin/false