General :: Assigning A User A Non-interactive Login?

Apr 16, 2010

I am trying to assign a user account on RHEL5 Server a non-interactive login but I am not sure if this is the correct command: useradd useraccount -s /sbin/nologinAfter I issue this command, I try to log in with this account and it says the "Administrator has disabled this account" when I enter the password. Does any one know if the command above is correct?

View 2 Replies


ADVERTISEMENT

General :: Write A Log File Of A User Interactive Process Using Tee ?

Sep 30, 2010

I want to write the sequence of operation of a user interactive process (Question asked by the process and answers user entered) in to a log file.

I used tee command, Precess1 | tee -a FileName

This write only the Question asked by the process. Does anybody know how to write the user inputs also to the same file, synchronized?

View 2 Replies View Related

General :: How Can Interactive Login Environment Be Duplicated In Cron

May 24, 2010

My execution environment is Linux steamboy 2.6.31-21-generic-pae #59-Ubuntu SMP.If I log in and run a program, the program works properly. The program is a shell script, which executes an environment file, so that path and library settings point correctly.If I have cron run the same program as the same user who logged in, one of the libraries cannot be found. I have sourced .bashrc and the same environment setting file, even though .bashrc executes the same environment file . /home/amr/bin/informix_env.sh

View 1 Replies View Related

CentOS 5 :: Non Interactive User - Account Currently Not Available

Jan 11, 2010

I'm still quite wet behind the ears with CentOS/Unix. What I'm trying to do is to setup a non interactive user, where I login with an interactive user and su to the non interactive. I have set the non interactive with /sbin/nologin (through the GUI), but when I login with the interactive user and su to the non interactive user I get the following:
"This account is currently not available".

View 5 Replies View Related

Ubuntu :: Run Interactive Script After Login

Jan 26, 2011

I need to run a script that prompts the user for some input and takes action based on that input. It must run at the end of the login process, after the desktop is displayed.I tried putting it in ~/.bash_login, but it didn't run. Do I need to tell /etc/profile to run ~/.bash_login? I thought it looked for it & ran it if it was found.

A related question would be - Can I make it so the terminal session that is running the script be the only thing that the user can do? In other words, they can't click on anything on the desktop or in the panels and have it run until after they respond to the input request.

View 1 Replies View Related

Programming :: Make A Cronjob Or At Job User Interactive?

Sep 2, 2010

Any pointers to make a shell script in cronjob or using at to be user interactive. We have a requirement to script a program where it prompts the users in CUI for feedback and capture the output in a text file and act based on the feedback.For eg: At pre-defined time i should prompt the acitve users whether it is ok to shutdown, whose feedback would be captured in a text file. Post which act on the updates in the text file

View 4 Replies View Related

Slackware :: Difference Between Login And Interactive Shells

Apr 22, 2010

I am having trouble distinguishing between login and interactive shells as they relate to terminals. I understand that a login shell is what is started when you login, and an interactive shell is used by scripts and such. I also get that terminals will use an interactive shell by default. What I don't understand is why interactive shells have no prompt by default. Is their a way to get an interactive shell to inherit the normal PS1 prompt? Is it considered bad to do this? Would it be better to have terminals start login shells, and if so why or why not?

View 7 Replies View Related

Ubuntu :: Use Sudo Without A Password For Non Interactive Login Using Plink ?

Jun 2, 2010

Before you say you shouldn't do that bla bla bla. I know why i shouldn't.

However i have a problem with running sudo commands from a non interactive command line script run using plink.

The automated script needs to use chown and give the current user ownership of some files and folders created by another user.

I can't use things like sudo -s etc as it requires that i enter a password.

I have setup public key authorization in order to login. Do i have to give the root user a password and log in as that. I would prefer not doing this but if that is the only solution i guess i'll have too.

View 4 Replies View Related

SUSE :: SLES 11 - Turn Off Keyboard Interactive Login

Mar 16, 2010

I just build a couple production SLES 11 machines and I'm using an ssh client to connect. However the ssh client forces me to use keyboard interactive login. How can I turn this off so I can use the normal username / password?

View 1 Replies View Related

Programming :: BASH Shell Differences: Login Or Interactive

Feb 18, 2011

Intuitively I think that the Login Shell and the Interactive Shell are the same applications but have access to different environmental variables.It this true? Why is there more than one type of shell anyways? You can change users with the interactive shell, why not log on with it to?

View 10 Replies View Related

Red Hat / Fedora :: Remove User's Rights From Accessing The Interactive Shell?

May 11, 2010

What is it? How do I remove a user's rights from accessing the interactive shell?

View 1 Replies View Related

Software :: Running An Interactive (python) Script In Tty1 Before Login?

Apr 22, 2011

I would like to run an interactive python script in tty1 on startup. This script requires user input outputs relevant data.I also need this script to be run as root as it accesses USB devices (and has to detach kernel drivers).It is an infinite-loop script, so I also want to be able to ctrl+alt+F to tty2 to actually login if needed

View 1 Replies View Related

General :: Login As Other User Using Shell Doesn't Load The Profile For That User?

Dec 11, 2009

I am using the sudo command to log on locally as another user by the following command:

sudo -u theotheruser -s
or
sudo -u theotheruser sh

As I see it, this initiates a new shell with the mentioned other user.However, this doesn't load that users profile from his home directory.Is there a way to automatically read the users profile when login in with selected command? I am mostely interested in getting a working prompt when logged in.

View 11 Replies View Related

Programming :: Write A Perl Script Which Will Give An Interactive Session To A User To Execute Command On The Server

Feb 25, 2011

I am trying to write a perl script which will give an interactive session to a user to execute command on the server. I have written a small script to do this :

Code: !/usr/bin/perl -w
use strict;
use Net::SSH::Perl;
my $host = '192.168.1.1';
my $username = 'user';
my $login_passwd = 'test123';

[Code]...

View 2 Replies View Related

General :: Login To Sub User?

Sep 25, 2009

I installed the Linux and can login with root first. Then I add a new user with name and password.But as I try to login as this user with the password, I got error like:Code:Access deniedUsing keyboard-interactive authentication.Note: I use putty to connect to the linux.

View 6 Replies View Related

General :: Can't Login As User In Fedora 14

Feb 28, 2011

I installed Fedora 14 on a Windows 7 64 bit machine. I forgot my password to access the fedora operating system. Pls, is there a workaround?

View 1 Replies View Related

General :: Find User Not Login?

Jun 3, 2010

In my system , there are 800 users in it , can advise if I want to find the user(s) who do not have login to the sytem over 180 days ( in the past 180days ) , what is the best way ? thx

View 4 Replies View Related

General :: Red Hat 5 - Login - Asking Me For A User Name At The Terminal

Oct 28, 2010

I am using red hat 5. It is asking me for a user name at the terminal. I do not understand what it is asking of me. A user name was never established during installation of the program. it did ask for a root password during installation which i provided. At the terminal i did try typing "root" for the log in and the actual root password for the password. It gave me administrative access.

However, i don't know the correct command that will take me to the desktop. For windows i simply typed in win or exit to go to the main windows desktop. Linux is foreign to me... can anyone help? I would be greatful for the advice. I am a windows junky from way back.

View 6 Replies View Related

General :: Login To User Using Script

Mar 20, 2011

I am trying to write a script. The purpose of the script is to login to perticular user and execute some commands. #/bin/bash su tom -c "df -h"..When I am running this script as root, it is not asking me any password.but I want to run this script as normal user. When I am running this script as normal user it is asking me password for user tom.I want to provide password in script only.

View 1 Replies View Related

General :: Restrict User Login

May 26, 2011

I use Rh server , can advise if I want to restrict the root user can not directly login to the system ( eg. ssh -l root IP_address" , what can i do ?

View 5 Replies View Related

General :: User Login Not Working

Aug 9, 2010

Talk about being thrown in at the deep end! I am not used to linux systems but I have inherited a linux based internet setup that I need to take care of.Two machines (both have centOS 5) are networked and one is accessing the /home directory so people can log onto their personal home folder.The log in screen on the second machine usually just requires the individual to input their username and password and it automatically accesses their folder on the other machine.At the moment it doesnt and comes back with an error saying that the session lasted less than 10 seconds. Looking at the error message it is saying that the profile was not found and couldnt create per-user gnome configuration directory.

I am able to log in to the local root user on the machine and I can see the networked drive and even access the home directory.looking thru the network setting I see that the other machine seems to be acting as a samba server?? and is connected with SFTP?Any idea how to fix this problem as I have a load of guys sharing 1 PC for internet access in the middle of the atlantic Ocean on a ship!

View 3 Replies View Related

General :: RHEL5 Not Assigning Partition For Usb Key

Dec 16, 2010

I'm trying to mount a USB key in a RHEL5 box to upload some file. I found doc online and followed it and mounted it fine the first time. Then I unplugged it and found that I have another file to upload so I plugged it back in. However this time it's not assigned a partition (last time was sdb1) and I can't mount it anymore. I think the USB key is recognized and the driver is installed properly:

[code]....

View 6 Replies View Related

General :: Sed: Assigning Its Output To A Variable?

Feb 3, 2011

Kernel 2.6.21.5, GNU/Linux (Slackware 12.0).In this script,

Code:
semoi@darkstar:~$ cat rename4.sh
#!/bin/bash
INPUT="k3b_audio_0_04"

[code]...

View 3 Replies View Related

General :: Allow A Login Script For One User In Fedora?

Mar 28, 2010

How do I allow a login script for one user in fedora? ~/.initrc doesn't seem to work, and I tried adding an executable to /etc/init.d but that's for all users (and it didnt work either anyway).

View 2 Replies View Related

General :: Check Whether A User Has Login Permissions?

Jul 12, 2010

I want to make sure that the user www-data cannot be used to login on my system (Ubuntu Lucid). How can I find out? - is there a command I can run against this user? (traditionally run by Apache daemon)

View 3 Replies View Related

General :: Can Only Login To Single User Mode

Mar 22, 2010

I'm running debian lenny. Suddenly when I rebooted my system I was unable to login. I type root and the password and it tells me the login is incorrect.If I boot into single user mode, it accepts the password just fine. Looking in the /etc/shadow file, it appears to be fine as well.Running passwd to set a new password sets a new password just fine, i can login to single user mode with the new password, however, I cannot login at a higher runlevel with the password.

If I delete a password in the /etc/shadow file, then try to login as that user, it simply says "Login Incorrect" without even asking for a password.

View 14 Replies View Related

General :: Enable Login Password For User?

Aug 31, 2009

Ubuntu 8.10 does not ask for a password to login. I have only one user set up. I have set the user password from System > Administration > Users & Groups. Still does not ask for password > logs in straight away.

View 2 Replies View Related

General :: Gnome Goes Blank After Login For A Particular User?

Apr 10, 2010

My gnome screen goes blank for a particular user,for the rest of the user i'm able to login in the gnome GUI,it's was working fine till now.

View 5 Replies View Related

General :: Disallow User To Login As Root?

Oct 12, 2009

I want to disallow root login on my RHEL Machine?

View 14 Replies View Related

General :: Login As User Into LDAP Client?

Jan 26, 2010

I have 389-DS ( Fedora DS) setup on CentOS 5.3 and working fine. I configured LDAP Client and want to login as user created under fedora DS Client. From Client Machine, I can easily see:
Code:
[root@fedoraDS-Client ~]# id ajrain
uid=569(ajrain) gid=569 groups=569 context=root:
system_r:unconfined_t:SystemLow-SystemHigh

This is User from LDAP Server (fedora DS Server) which is showing in Client Machine. So It means its retreiving value from Server. Correct? Now When I am trying to login , it says "Server unexpectedly closed network Connection". When I supplied user password:
Code:
login as: ajrain
ajrain@fedoraDS-Client's password:

The File /var/log/secure says:
Code:
Jan 27 02:39:27 localhost sshd[3996]: pam_unix(sshd:auth):
authentication failure; logname= uid=0 euid=0
tty=ssh ruser= rhost=10.210.53.104 user=ajrain
Jan 27 02:39:27 localhost sshd[3996]: Failed password for ajrain from 10.210.53.
104 port 1241 ssh2
Jan 27 02:39:27 localhost sshd[3997]: fatal: Access denied for user ajrain by PAM account configuration

View 1 Replies View Related







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