General :: Login Command In CentOS ?

Aug 13, 2010

For some reason every time I enter the 'login' command as root, my putty shell craps out. It's as if the kernel is not prepared or does not know how to handle the 'login' command. Where can I set it up? Maybe it's not configured to use PAM?

I want to use this command to switch users. Sure I can use 'su username' but I noticed there are some issues when using 'mail' command right after I change users. It gives me a permissions error as if the environment variable for mail is set for roots mailbox instead of the new users mailbox.

How can I configure 'login' to work properly in CentOS?

View 2 Replies


ADVERTISEMENT

CentOS 5 :: Bash Script Command For Auto Login On Several Hosts

Nov 2, 2010

I am trying to make a bash-script for auto-logins on several hosts, seems there is a problem with the quotes and I can't figure it out. I've experimented with singles and doubles but no luck yet. Below are two variants with respective outputs. In both cases the output of echo works fine if I copy and paste it to a prompt, but when executed from the script it falls down.

* Only one case-clause for testing...
* Not possible to use passwordless key-login

#!/bin/bash
PASSWORD="my_password"
case "$1" in
"example1" ) HOST="example-host-1"
echo $HOST;;
esac
if [ $HOST ]
then
COMMAND="expect -c 'spawn ssh $HOST ; expect assword ; send $PASSWORD
; interact'"
echo $COMMAND
exec $COMMAND
else
echo "No host argument"
fi

View 7 Replies View Related

General :: Using 'say' To Login SSH And Execute Command

Mar 25, 2010

My problem is:

sub init() {
$Test->description("Establishing the connection to the client");
eval {
$Host = host($CLIENT) or die($@);
$Conn = connect("#ssh") or die "Client connection Failed" . $@;
};
if ($@) {
$Log->error("Unable to instantiate the Objects for the Test" .
[Code]...

Here I'm trying to connect windows machine using connect object which is working fine. But when I tried to execute the command on Windows machine from Linux machine by using:

[Code]...

View 1 Replies View Related

General :: Configure A Command To Run On Login Through Telnet?

Feb 9, 2010

I want to run a command every time I log in to my Ubuntu box, but only if I'm connecting through telnet, not if I'm logging in at the console.

View 1 Replies View Related

General :: Unable To Login As Root While To Use The Su Command?

Apr 3, 2011

I have a Linux machine which I set up for my personal use at home. I installed Fedora Core 11 a long time ago, and recently I noticed that I am not able to log in as root (I didn't realize this issue until recently since I always have been logging in as a user account that I created during the FC11 installation).When I login as a user account instead of root, I can use the su command with the password I set up for the root account. Even when I'm in GUI mode and try to make changes to the system from the user account, the GUI asks to enter the root password, and I type the password I set for root and it works. However, if I boot the machine and try to log in the system as root, password that I set up is rejected.

I'm very puzzled with this problem because with my limited knowledge on Linux system, I thought the root password and the su password are the same (i.e. when you install Linux OS, you set the root password, and you use the same password for using the su command). I do not know exactly when this problem started, but the only thing that I can think of as a cause of this issue is that I once changed the root password from GUI using System > Administration > Root password since the system one time complained about the low security strength of the root password.

View 6 Replies View Related

General :: Fedora 15 Command Line Login?

May 30, 2011

Few day back I have installed fedora 15 in my system with gnome desktop environment. when i was using fedora 11 I used to login via command line by changing the /etc/inittab from run level 5 to run level 3 . once if i login when ever i need GUI, simply i will type startx command , but when i tried to change the runlevel in fedora 15 , It was confusing to me , there is no 1,2,3 is there . how can i change to command mode login in fedora 15..?

View 1 Replies View Related

General :: Login Through Command Line In Grub?

Jan 4, 2011

Does anyone know how to login through command line in grub.

View 14 Replies View Related

General :: Change Login Manager Gdm->command Line Only?

Feb 28, 2010

I am using debian 5.04(base) + lxde. I am using gdm to login. I want to change the gdm to commandline login only, which similar to (ctrl +alt + f2) but whenever computer restart, it boot into gdm. what is the file to change the boot level?

View 1 Replies View Related

General :: Using Command Line To Connect To A Wireless Network With An Http Login?

Apr 18, 2010

I'm trying to connect to a wifi network where it hijacks all requests and redirects you to a page where you have to agree to a terms of use before it lets you connect to the actual outside world. This is a pretty common practice, and usually doesn't pose much of a problem. However, I've got a computer running Ubuntu 9.10 server with no windowing system. How can I use the command line to agree to the terms of use? I don't have internet access on the computer to download packages via apt-get or anything like that. Sure, I can think of any number of workarounds, but I suspect there's an easy way to use wget or curl or something.

Basically, I need a command line solution for sending an HTTP POST request essentially clicking on a button. For future reference, it'd be helpful to know how to send a POST request with, say, a username and password if I ever find myself in that situation in another hotel or airport.

View 2 Replies View Related

General :: Automatic Login On CentOS 5.5?

Sep 6, 2010

I have installed CentOS 5.5 successfully and I have VNC working. This server will be a headless box that will reside in a server rack. I intend to perform any necessary maintenance on the machine remotely though my desktop computer. My problem is that when CentOS is on the login screen, I cannot connect with VNC. Once I have logged into a user account, then I can connect.

I would like the server to automatically login to one of my users each time it boots so that the VNC connection will be opened. Currently I have two users, root and Zachary. I would like the server to automatically login to the user Zachary.

In the CentOS Gnome GUI, when I go into System > Administration > Login Screen, and then click on the Security tab there is an option to "Enable Automatic Login." If you check this box a select form field becomes active; however, there are no user accounts showing in that select field. I tried typing in the user name that I wanted to automatically login, but after closing the screen it clears that username. What am I missing?

View 6 Replies View Related

General :: Get Qmake Command In Centos?

Apr 6, 2011

how can i get qmake command working on my centos, if possible provide the link to download it.

View 6 Replies View Related

General :: Centos - Which Command To Use To Know How Much RAM Consumed By Each Process

Jul 10, 2011

I have tried top and PS command but i am not able to find the RAM used by each process.top command says that 240MB RAM used but the Memory shows 0% for all the processes, same with ps. i want to know which process consumes all 240MB RAM.Is there any command which / script which can sort the running process in oder of increasing RAM usage so that i can see. Also i find it very hard to read bytes and KB. Is there any to way to chnage those units to MB

View 2 Replies View Related

General :: Manage Song Metadata On CentOS From Command Line

Mar 13, 2010

I am making a simple Pandora.com alternative for myself and a few friends where the user can upload his/her songs and listen to them anywhere. My intent is to make a lightweight, simple player in HTML5 so all the user needs is a current Firefox or Chrome to use it. I have set it up so that all uploaded songs get converted to .ogg and added to a database but I also want some metadata (not sure if that is the correct term) for the songs to be stored in the database so the player can tell the user what song he/she is listening too. I know there are several GUI tools for managing the title/artist/album info for songs but I'm having trouble finding any good ones I can use from the command line. If the song has the information already in the file, I think I can use mplayer to retrieve the information but it would be really great if there was one that would look up the song information online.

View 1 Replies View Related

General :: Command Line BitTorrent Client For CentOS Linux?

Jan 4, 2011

Is there command line BitTorrent Client in Linux? A PHP / Python script would be nice too.

View 7 Replies View Related

General :: Display True File Size Using Ls -l Command In CentOS

Apr 19, 2011

I am trying to figure out the actual size of files and directories on a CentOS Linux 5 server and when I do a ls -l I see for example at the Directory of /Data 4096 but once in side the directory and I do a ls -l I see larger file sizes. How do I get the actual file size of a Directory to show up?

View 3 Replies View Related

General :: Mail Server : Reset The Password For It Using The Password Command From The Root Login?

Jul 23, 2009

I am an absolute Linux Beginner who is being required to do a bit of admin work because the boss just fired the old linux admin. Unfortunately, one of our employees cannot remember her password to her email account and as such I need to reset it on our linux server.What I want to check is that this email account is actually a linux user account and I simply will reset the password for it using the passwd command from the root login. Is that correct?

View 1 Replies View Related

General :: CentOS Command-line Program To Randomly Change MAC Address?

Nov 7, 2009

OS: CentOS 5.3 Enterprise Server
Red Hat Nash Version 5.1.19.6

I need to find a command-line program to randomly change my MAC address. I know on Ubuntu there is a program called 'macchanger'. And on Windows another one called 'macshift'. I just can't find one for CentOS 5.3 Enterprise Edition.

View 3 Replies View Related

General :: Unable To Start Apache On CentOS - Invalid Command 'Order'

Aug 25, 2009

I am unable to start apache on my linux machine with following errors Starting httpd: Syntax error on line 117 of /etc/httpd/conf/httpd.conf: Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration I am using CentOS5 with apache version httpd-2.2.13

View 99 Replies View Related

CentOS 5 :: Top Command Not Showing Command Option?

Mar 19, 2011

I have installed Centos in my server and when I take, top -c command its not showing the "command" option correctly. Due to the same, I'm not able to correctly track down the file which causes excessive usage. For eg:

top - 09:30:29 up 72 days, 12:46, 2 users, load average: 0.21, 0.16, 0.15
Tasks: 122 total, 1 running, 120 sleeping, 0 stopped, 1 zombie
Cpu(s): 4.8%us, 0.7%sy, 0.0%ni, 93.5%id, 1.0%wa, 0.0%hi, 0.0%si, 0.0%st

[code]....

View 3 Replies View Related

CentOS 5 :: Error Login In VSFTPD. CentOS 5.5

Feb 3, 2011

I installed VSFTPD but when logging ( at command line or browser ) at any user always :

[root@srv vsftpd]# ftp 172.16.0.3
Connected to 172.16.0.3.
220 (vsFTPd 2.0.5)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (172.16.0.3:root): system

[Code]...

View 4 Replies View Related

CentOS 5 :: CentOS Server Command Line Very Slow?

Jul 14, 2010

Anyone know why my fresh installation of centOS server is so slow? Seems like it takes over a minute to execute a command, im not doing anything complicated either. Secondly, how come at times when I type reboot the machine starts to beep, one long loud annoying beep.

View 5 Replies View Related

General :: Terminal Command / Centos Server Starts Mysqld, Httpd And Ftpd Services At Boot Time Automatically?

Dec 27, 2010

Can anyone tell me what command can be used so that the Linux Centos Server starts mysqld, httpd and ftpd services at boot time automatically?

View 2 Replies View Related

Ubuntu :: Execute Command Without Login

Sep 14, 2010

I want to start my Ubuntu 10.04 and without logging in I need a command started. The command is setxkbmap .... So, I will not put the command in my .profile, nor in my .bashrc, because I am not going to login.

View 2 Replies View Related

Ubuntu :: Execute Command Without The Login?

Sep 14, 2010

I want to start my Ubuntu 10.04 and without logging in I need a command started. The command is setxkbmap .... So, I will not put the command in my .profile, nor in my .bashrc, because I am not going to login.

View 1 Replies View Related

Debian :: Running Command After Delay (On Login)?

Mar 13, 2011

I want to run a command on startup (Via startup applications) that has to wait for another program to run first.I don't seem to be able to use sleep to delay the command as it is stored in a .desktop file.How do I make it run later, preferably without having to create a script just for this one command.Also, how do I make the system start with compiz? Change "/desktop/gnome/session/required_components/windowmanager" ? Or do it the clean way by (Somehow) configuring gnome to use compiz?

View 3 Replies View Related

Ubuntu :: Login Option To Command Line?

May 14, 2010

Does anyone know how? I want to add the command line option to the login to. So, I have Gnome, KDE and command line.

View 9 Replies View Related

Ubuntu :: When Login Via Ssh To A Server Only A $ At The Command Prompt

Aug 13, 2010

I'm getting some weird behavior when I log in via ssh to a ubuntu server. When I log in, there is only a $ at the command prompt, no user name. The arrows don't work, they just put the arrow characters in the prompt. Everything else seems to be ok. Also, when I say logged in as User, I meant a new user I just created.

View 2 Replies View Related

Ubuntu :: How To Execute Command Automatically After Login

Feb 2, 2011

I need to execute this command after login: gvfs-mount -d /dev/sda1.It works perfectly from terminal but it doesn't if I add it to "Startup Applications" or to rc.local.Is there another way?

View 2 Replies View Related

Server :: Command Not Found Error During Login?

Nov 23, 2010

when i login to one of our development server i get the following.

Last login: Tue Nov 23 14:08:32 2010 from 192.168.2.5
-bash: r: command not found
-bash: $: command not found

[code]....

View 2 Replies View Related

Debian Configuration :: Can't Login With New User (useradd Command)

Sep 5, 2015

I created a new user with command useradd (as root) :

Code: Select alluseradd razer123

And then set a password with command passwd (as root):

Code: Select allpasswd razer123
No Error!

When I logged out and tried to login with new user, I coulden't! (even after restart!)

I looked into /etc/passwd :

Code: Select allcat /etc/passwd | grep razer123

result:

Code: Select allrazer123:x:1002:1002::/home/razer123:/bin/bash

There is no home folder in the path!

# I have debian 8 and MATE desktop.

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved