Why i am not able to log into user Santosh? [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
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.

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.

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.

linux - adding a user [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 6 years ago.
Improve this question
I have this code but it is not compiling correctly. I want to create a user with a default shell of bin/sh with the group adults. Any suggestions?
Command: useradd -s /bin/sh –g adults michael
Thank you.
First of all the code given is not being compiled, but rather executed by a shell. Then your command is perfectly fine, given that the adults group already exists before you type the command into your shell.
So without error, or more context, nobody will be able to tell you more than what I'm telling you:
there's no issue with your command.

Hashtag instead of the dollar sign ssh shell [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
Hello I got a server with Centos 5 (64 bits) installed and when I'm connecting with putty after entering the user root and the password I get a hashtag instead of a dollar sign I'm confuse.
[root#mokmeuh ~]#
Also it's seems that alot of command don't work like
[root#mokmeuh ~]# $chmod u+x file.sh
That's just one but I can't run a shell script or anything like that so I'm confuse and need some help.
Yep, hashtag usually says that you're root.
Normal users have the dollar sign.
But you shouldn't write the dollar sign in front of your commands. Just leave it.

changing users default login shell on RHEL? [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
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

Resources