changing users default login shell on RHEL? [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
Here is a command on free bsd
sudo pw usermod ksbuild -s /usr/local/bin/bash
how do I do the equivalent on RHEL?

chsh
(Change Shell)

Or for just a specific user:
usermod -s /usr/local/bin/bash ksbuild

To change the default setting of all new users, edit the setting in the defaults file:
/etc/default/useradd

Related

My raspberry Pi Won't let me log in as a superuser [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed last year.
Improve this question
Here's the code I'm Using:
'''pi#raspberrypi:~ $ su
'''
And here's what I'm getting:
'''Password:
su: Authentication failure
'''
su implies that you know the root password:
Try sudo -i instead.

How to download an entire directory and locate using wget? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
i can download entire folder with following command:
wget -r --no-parent http://abc.tamu.edu/projects/tzivi/repository/revisions/2/raw/tzivi/
But how can i locate them for example into this folder: home/web/example
Try use key -P.
Please, note you may need to use command sudo.
wget -r --no-parent http://abc.tamu.edu/projects/tzivi/repository/revisions/2/raw/tzivi/ -P /home/web/example

Set Proxy for Linux server by bash script failed [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I use the command below to set proxy in command line and it succeed:
export http_proxy="http://proxy.company.com:8080/"
But When I use a bash script, below is the content of the script
export http_proxy="http://proxy.company.com:8080/"
export https_proxy="http://proxy.company.com:8080/"
sudo yum list
And it failed.
Can anyone tell me the difference?
Thanks.
sudo doesn't respect current user variables. You must use sudo -E to preserve current variables. Or you can set the proxy in /etc/yum.conf.

Why i am not able to log into user Santosh? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I tried to channge the user from root to Santosh but i am not able to do so.
[root# localhost ~] # su -santosh
-bash-3.1 $
If you look at the su(1) man page, you can see that you are running
su -s antosh
which tries to switch to root using the shell antosh. This is probably not what you want. To change the user to santosh do:
su santosh
or if you want to run a login shell
su -l santosh
or
su - santosh
The space after - is very important.

bash: ./checksetup.pl: No such file or directory [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
While installation of bugzilla I was running this commmand, /.checksetup.pl , but I am getting the error,
bash: ./checksetup.pl: No such file or directory
I am using centos v6.5.
check if you in the right place (u can use 'ls' command and see if it's showing 'checksetup.pl' )
it might be not executable ,then try this :
sudo chmod +x checksetup.pl

Resources