/bin/login and creating a login shell~
Hi all,
Not sure how /bin/login works, but i cant seems to enter the correct password Code:
[alan~racnode1 ~]$ /bin/login Code:
[alan~racnode1 ~]$ su - grid ============ Been reading about login shell Quote:
Code:
Noob |
perl -e 'exec {"/bin/bash"} "-bash"'
|
I would say you misunderstood something. bash --login will start you a login shell, see the man page of bash.
login -bash will not work. also see man page of login: login may be special to the shell and may not be invoked as a sub-process. |
Quote:
I tried bash --login, but it doesnt prompt me for any login or password entry and $0 doesnt return a login shell "-bash" Code:
[alan@racnode1 ~]$ bash --login Code:
[alan@racnode1 ~]$ su - alan is "login" process really invoking "bash --login" or "bash" is invoking "--login" to let user login into a login shell ? Regards, Noob |
|
Quote:
|
All times are GMT -5. The time now is 08:09 PM. |