lets assume I am user(with no rights) and I need to change my shell as a default to /bin/bash by editing a file. So where I can find a file for a specific user where I can edit my default shell and set it permanently without involving an administrator.
And also, is there any command to change my own shell on top of that I can edit in the file directly.
I have tried to find something, but is only telling commands and files only if you have root access.
Thank you.
.tcshrc
file in your home directory. As the first line in this file you place the command/bin/bash
. As soon as it hits, you will have a bash shell. – MelBurslan Mar 24 '16 at 04:37/etc/passwd
, butchsh
will do it for you. you ay also usechfn
to change information about current user. – Archemar Mar 24 '16 at 07:41chsh
./etc/passwd
is where the shell setting is stored, but only if the account is a local one, and not on all Unix variants (most if not all provide the information in/etc/passwd
, but it might be generated from some other file), and even if that's the place where the setting is stored you shouldn't edit it manually. – Gilles 'SO- stop being evil' Mar 24 '16 at 22:45