Questions tagged [nologin]

The tag has no usage guidance.

0
votes
1answer
36 views

how to run a bash that must be run with a specific user with another user without password

I have 2 users. test1 that i created it with /sbin/nologin and has no password. test2 that has sudo privilege and has passworsd. I have this script: /data/tempWork/fazitst that must be run under ...
26
votes
4answers
3k views

Is it possible to grant users sftp access without shell access? If yes, how is it implemented?

I have an array of users who need to just upload files to their set homedirs. I think sftp would suffice, but I don't want them to login via shell. So is it possible? My platform is centos 7, user's ...
0
votes
0answers
138 views

No login screen, unable to login on tty2 to tty6 with “Login Incorrect” error

I'm getting this problem after my computer froze while updating. I use Fedora 28 KDE. I was shown in task bar that there 171 updates, so I clicked it, as it was updating the computer froze, so I ...
0
votes
1answer
249 views

Will setting user shell to nologin prevent them from accessing SFTP?

I have a user that has their shell set to nologin, or actually a different binary "noshell" provided by cPanel. whatever the case, I want to know if setting their shell this way is enough to prevent ...
-1
votes
1answer
495 views

Login through command line in Debian Stretch

Aslam O Alikum, Dear friends, I am Jawad Mansoor and I used this name while installing Debian Stretch as User Name, later when it asked me for User ID I just gave it jawad so now when I whoami it ...
0
votes
1answer
225 views

Command line login failed with two strings ID in Debian Stretch

I have Debian Stretch and my user name is two strings like "jkl mno" and I when I press Alt+Ctrl+F3 command line appears and gui disappears and I can't log in with my credentials, so I created another ...
1
vote
1answer
189 views

Usermod Nologin Script

I'm curious how someone would implement a script to give either /usr/bin/nologin or /bin/false to all non-root system accounts between 1-999 (and any determined uid range, for that matter). I like to ...
1
vote
1answer
316 views

Executing commands from a process running under a nologin user

I have a process that runs under a nologin user (in this case Tomcat server). I would like to execute some shell commands from that process but most of them are not available apart from standard ...
1
vote
1answer
133 views

Pipe data onto another machine with nologin

I have a huge directory I want to copy to another machine as a .tar.gz file. I don't have a lot of space on either machine, so I'd like to copy the file through a pipe, like this: tar -czf - ...