I am sorry for creating a new topic after my previous inquiry was closed, but I tried and tried and I do not know how to edit my previous post. This is not exactly any homework, this is one of 40 questions we were expected to prepare for one of the labs. I searched and read what I could and still do not know the answer to this problem.
-
The problem statement, all variables and given/known data:
I am a root in a Unix system. My shell is bash. -
Relevant commands, code, scripts, algorithms:
How to set for a certain user:
- a non-login interactive shell,
- a login, non-interactive shell,
- a non-login, non-interactive shell.
- The attempts at a solution (include all code and scripts):
I read everything I could find, I only found information which files are read by different types of shells. I cannot find anywhere how to change a shell for a user to make it:
- noninteractive and non-login,
- non-interactive and login,
- interactive and non-login.
What I know:
I can use useradd or adduser with -s option to set a certain shell, but I do not know what to write after this option.
I know that I can edit /etc/passwd file and for a certain user change the last column to /bin/non-login. I do not know what shell version I get if I do it. It will be non-login allright but interactive or non-interactive?
- Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course):
name: Akademia G�rniczo-Hutnicza w Krakowie
city: Cracow
country: Poland,
Name of Professor: Grzegorz Nalepa, Krzysztof Kluza
Link to the course (I was not allowed by some mechanism on this website to post any URLs but I am required to do so by the formular therefore I re-wrote the link to the course that the site does recognise that it is a URL: [eidz ti ti pi colon slash slash ai dot ia dot agh dot edu dot pl slash wiki slash pl colon dydaktyka colon unix colon start ]
We do not use numbers for the courses so I cannot provide any course number. It is called Introduction to Unix (Wstp do system�w Unix).