Can call login command from terminalDisable a user's login without disabling the accountWhy does agetty ask...
What do you call a situation where you have choices but no good choice?
Category-theoretic treatment of diffs, patches and merging?
Interpretation of non-significant results as "trends"
How do ballistic trajectories work in a ring world?
Gaining Proficiency in Vehicles (water)
How do I explain that I don't want to maintain old projects?
What is the relationship between external and internal composition in a cartesian closed category?
I'm feeling like my character doesn't fit the campaign
Users forgotting to regenerate PDF before sending it
How to execute a program from terminal redirecting stdout and stderr to systemd's journal?
What are the effects of abstaining from eating a certain flavor?
Why won't the U.S. sign a peace treaty with North Korea?
Writing an ace/aro character?
What is the meaning of "prairie-dog" in this sentence?
What factors could lead to bishops establishing monastic armies?
Is it ok for parents to kiss and romance with each other while their 2- to 8-year-old child watches?
Is there a formal/better word than "skyrocket" for the given context?
What was the nature of the known bugs in the Space Shuttle software?
Is this car delivery via Ebay Motors on Craigslist a scam?
Need a non-volatile memory IC with near unlimited read/write operations capability
Gory anime with pink haired girl escaping an asylum
Is "wissen" the only verb in German to have an irregular present tense?
Is space division multiplexing really multiplexing?
Curly braces adjustment in tikz?
Can call login command from terminal
Disable a user's login without disabling the accountWhy does agetty ask for the username itself?login 'authentication failure' by non-root user, can login only by rootLinux Terminal SSH Username ChangeCan't login after fresh installationWhen opening a terminal does not require a login?Login through command line in Debian StretchCan't login on Debian with correct passwordLinux terminal is not recognizing login informationStuck at login loop while tty and recovery mode terminal works fine
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I want to create a user using useradd from root in my terminal window, after it I call passwd to set user's password.
- So I cant call
login usernamebecause when I call it from terminal it closes terminal's window. - I can write
loginand then write user's name but this does not work because it says thatLogin incorrect. - I can call
su userto login as new user. This command will allow me to work with new user. - I can login to my new user from graphical login window (startup login window)
- If I write from terminal
init 3, then I can write my user's name and password and login - I can login as new user if my OS is running in non graphical mode.
I tested it in CentOS 5.5,6.5. I want to login as new user using login command from terminal when my OS is running in grephical mode. How can I do it?
SOLUTION:
Someone adviced me to call su -l user
bash centos terminal gnome login
bumped to the homepage by Community♦ 1 hour ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
|
show 2 more comments
I want to create a user using useradd from root in my terminal window, after it I call passwd to set user's password.
- So I cant call
login usernamebecause when I call it from terminal it closes terminal's window. - I can write
loginand then write user's name but this does not work because it says thatLogin incorrect. - I can call
su userto login as new user. This command will allow me to work with new user. - I can login to my new user from graphical login window (startup login window)
- If I write from terminal
init 3, then I can write my user's name and password and login - I can login as new user if my OS is running in non graphical mode.
I tested it in CentOS 5.5,6.5. I want to login as new user using login command from terminal when my OS is running in grephical mode. How can I do it?
SOLUTION:
Someone adviced me to call su -l user
bash centos terminal gnome login
bumped to the homepage by Community♦ 1 hour ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
1
It seems to me you already listed the answer to your question as #3 in your list: "I can call su user to login as new user. This command will allow me to work with new user."
– Celada
Oct 7 '14 at 18:17
I want to login as new user usinglogin(not su)command from terminal when my OS is running in grephical mode. This thing I need for my administrative needs.
– BrettWatts
Oct 7 '14 at 18:18
1
You don't want to usesuyet that's exactly whatsuis for. You could useloginas well, I suppose. I don't know what you mean by "halts my terminal" because I am able to runloginfrom a terminal and it works just fine.
– Celada
Oct 7 '14 at 18:22
1
I'm not sure what your issue is. You can't have two users logged in to the GUI simultaneously. If you want to stay logged in to the GUI (yourself) and also login as the new user, and you have a problem withlogin, and you don't likesu, then how abouttelneting orsshing tolocalhostand logging in (as the new user) that way?
– G-Man
Oct 7 '14 at 19:18
1
Thelogincommand works only in certain circumstances. Running in a pty opened by the window system is unfortunately not one of those circumstances.
– Mark Plotnick
Oct 7 '14 at 19:50
|
show 2 more comments
I want to create a user using useradd from root in my terminal window, after it I call passwd to set user's password.
- So I cant call
login usernamebecause when I call it from terminal it closes terminal's window. - I can write
loginand then write user's name but this does not work because it says thatLogin incorrect. - I can call
su userto login as new user. This command will allow me to work with new user. - I can login to my new user from graphical login window (startup login window)
- If I write from terminal
init 3, then I can write my user's name and password and login - I can login as new user if my OS is running in non graphical mode.
I tested it in CentOS 5.5,6.5. I want to login as new user using login command from terminal when my OS is running in grephical mode. How can I do it?
SOLUTION:
Someone adviced me to call su -l user
bash centos terminal gnome login
I want to create a user using useradd from root in my terminal window, after it I call passwd to set user's password.
- So I cant call
login usernamebecause when I call it from terminal it closes terminal's window. - I can write
loginand then write user's name but this does not work because it says thatLogin incorrect. - I can call
su userto login as new user. This command will allow me to work with new user. - I can login to my new user from graphical login window (startup login window)
- If I write from terminal
init 3, then I can write my user's name and password and login - I can login as new user if my OS is running in non graphical mode.
I tested it in CentOS 5.5,6.5. I want to login as new user using login command from terminal when my OS is running in grephical mode. How can I do it?
SOLUTION:
Someone adviced me to call su -l user
bash centos terminal gnome login
bash centos terminal gnome login
edited Oct 8 '14 at 6:30
BrettWatts
asked Oct 7 '14 at 18:13
BrettWattsBrettWatts
12 bronze badges
12 bronze badges
bumped to the homepage by Community♦ 1 hour ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 1 hour ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
1
It seems to me you already listed the answer to your question as #3 in your list: "I can call su user to login as new user. This command will allow me to work with new user."
– Celada
Oct 7 '14 at 18:17
I want to login as new user usinglogin(not su)command from terminal when my OS is running in grephical mode. This thing I need for my administrative needs.
– BrettWatts
Oct 7 '14 at 18:18
1
You don't want to usesuyet that's exactly whatsuis for. You could useloginas well, I suppose. I don't know what you mean by "halts my terminal" because I am able to runloginfrom a terminal and it works just fine.
– Celada
Oct 7 '14 at 18:22
1
I'm not sure what your issue is. You can't have two users logged in to the GUI simultaneously. If you want to stay logged in to the GUI (yourself) and also login as the new user, and you have a problem withlogin, and you don't likesu, then how abouttelneting orsshing tolocalhostand logging in (as the new user) that way?
– G-Man
Oct 7 '14 at 19:18
1
Thelogincommand works only in certain circumstances. Running in a pty opened by the window system is unfortunately not one of those circumstances.
– Mark Plotnick
Oct 7 '14 at 19:50
|
show 2 more comments
1
It seems to me you already listed the answer to your question as #3 in your list: "I can call su user to login as new user. This command will allow me to work with new user."
– Celada
Oct 7 '14 at 18:17
I want to login as new user usinglogin(not su)command from terminal when my OS is running in grephical mode. This thing I need for my administrative needs.
– BrettWatts
Oct 7 '14 at 18:18
1
You don't want to usesuyet that's exactly whatsuis for. You could useloginas well, I suppose. I don't know what you mean by "halts my terminal" because I am able to runloginfrom a terminal and it works just fine.
– Celada
Oct 7 '14 at 18:22
1
I'm not sure what your issue is. You can't have two users logged in to the GUI simultaneously. If you want to stay logged in to the GUI (yourself) and also login as the new user, and you have a problem withlogin, and you don't likesu, then how abouttelneting orsshing tolocalhostand logging in (as the new user) that way?
– G-Man
Oct 7 '14 at 19:18
1
Thelogincommand works only in certain circumstances. Running in a pty opened by the window system is unfortunately not one of those circumstances.
– Mark Plotnick
Oct 7 '14 at 19:50
1
1
It seems to me you already listed the answer to your question as #3 in your list: "I can call su user to login as new user. This command will allow me to work with new user."
– Celada
Oct 7 '14 at 18:17
It seems to me you already listed the answer to your question as #3 in your list: "I can call su user to login as new user. This command will allow me to work with new user."
– Celada
Oct 7 '14 at 18:17
I want to login as new user using
login(not su) command from terminal when my OS is running in grephical mode. This thing I need for my administrative needs.– BrettWatts
Oct 7 '14 at 18:18
I want to login as new user using
login(not su) command from terminal when my OS is running in grephical mode. This thing I need for my administrative needs.– BrettWatts
Oct 7 '14 at 18:18
1
1
You don't want to use
su yet that's exactly what su is for. You could use login as well, I suppose. I don't know what you mean by "halts my terminal" because I am able to run login from a terminal and it works just fine.– Celada
Oct 7 '14 at 18:22
You don't want to use
su yet that's exactly what su is for. You could use login as well, I suppose. I don't know what you mean by "halts my terminal" because I am able to run login from a terminal and it works just fine.– Celada
Oct 7 '14 at 18:22
1
1
I'm not sure what your issue is. You can't have two users logged in to the GUI simultaneously. If you want to stay logged in to the GUI (yourself) and also login as the new user, and you have a problem with
login, and you don't like su, then how about telneting or sshing to localhost and logging in (as the new user) that way?– G-Man
Oct 7 '14 at 19:18
I'm not sure what your issue is. You can't have two users logged in to the GUI simultaneously. If you want to stay logged in to the GUI (yourself) and also login as the new user, and you have a problem with
login, and you don't like su, then how about telneting or sshing to localhost and logging in (as the new user) that way?– G-Man
Oct 7 '14 at 19:18
1
1
The
login command works only in certain circumstances. Running in a pty opened by the window system is unfortunately not one of those circumstances.– Mark Plotnick
Oct 7 '14 at 19:50
The
login command works only in certain circumstances. Running in a pty opened by the window system is unfortunately not one of those circumstances.– Mark Plotnick
Oct 7 '14 at 19:50
|
show 2 more comments
1 Answer
1
active
oldest
votes
It seems you just want to change the user's password. In which case you can (as root) type:
passwd user-name
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f159878%2fcan-call-login-command-from-terminal%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
It seems you just want to change the user's password. In which case you can (as root) type:
passwd user-name
add a comment |
It seems you just want to change the user's password. In which case you can (as root) type:
passwd user-name
add a comment |
It seems you just want to change the user's password. In which case you can (as root) type:
passwd user-name
It seems you just want to change the user's password. In which case you can (as root) type:
passwd user-name
answered Feb 10 '15 at 15:49
rghomerghome
3471 silver badge6 bronze badges
3471 silver badge6 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f159878%2fcan-call-login-command-from-terminal%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
It seems to me you already listed the answer to your question as #3 in your list: "I can call su user to login as new user. This command will allow me to work with new user."
– Celada
Oct 7 '14 at 18:17
I want to login as new user using
login(not su)command from terminal when my OS is running in grephical mode. This thing I need for my administrative needs.– BrettWatts
Oct 7 '14 at 18:18
1
You don't want to use
suyet that's exactly whatsuis for. You could useloginas well, I suppose. I don't know what you mean by "halts my terminal" because I am able to runloginfrom a terminal and it works just fine.– Celada
Oct 7 '14 at 18:22
1
I'm not sure what your issue is. You can't have two users logged in to the GUI simultaneously. If you want to stay logged in to the GUI (yourself) and also login as the new user, and you have a problem with
login, and you don't likesu, then how abouttelneting orsshing tolocalhostand logging in (as the new user) that way?– G-Man
Oct 7 '14 at 19:18
1
The
logincommand works only in certain circumstances. Running in a pty opened by the window system is unfortunately not one of those circumstances.– Mark Plotnick
Oct 7 '14 at 19:50