General :: Unable To Neither Add New Users Using Command Useradd Nor Delete Existing Users Using Command Userdel
Jun 30, 2010
Im not getting able to neither add new users using command useradd nor delete existing users using command userdel. And even Im not getting able to login into any existing users except root. It was ok before. Im having this problem very recently on my linux server. Im using RHEL5.
View 9 Replies
ADVERTISEMENT
Apr 29, 2010
i want to disable the su command on a server so that users cant run the su command i removed the comment from the 3 and 5 line in /etc/pam.d/su file but it doesnt seem to work the file is shown below
#%PAM-1.0
auth sufficient pam_rootok.so
# Uncomment the following line to implicitly trust users in the "wheel" group.
[code]....
View 8 Replies
View Related
Jul 24, 2009
Error message in /var/log/messages
login(pam_unix)[26769]:session opened for user root by LOGIN(uid=0)
login[26769]: Module is unknown
init: open(/dev/pts/0): No such file or directory
I have created a new user also but I couldn't login to the system. But I could login to the system as root and also with same new username password through putty from another machine.
View 1 Replies
View Related
May 17, 2010
I want to know the command which will list the local users created by me not system users.
View 6 Replies
View Related
Sep 23, 2010
I am new in Linux.Problem is that how to add a more then one users in a one command and also add a password to them?
View 2 Replies
View Related
Jul 18, 2011
I am using ubuntu 9.04. I created new users, & users logged in with their name & password. Everything is working fine. But when they open gui terminal or when they login using CLI(using ctrl+alt+f1), they will get only "$" symbol, instead of full path like pwd, hostname, etc. And if I do ls, it is listing the content, but command completion is not happening, i.e $cd Des(pressing tab). These all things can be fixed only after pressing "bash". So I don't always want to press "bash". So is there any way that I can fix this issue.
View 6 Replies
View Related
Mar 17, 2011
Allow me to submit that i did a mistake of not saving the work which i done in the past few months. i have used history command to see the previous commands. But trouble is that since i had worked a lot on gnome-terminal, only last 1000 commands are shown. Is it possible to see list of all the previous commands for all users. Also, sorry if this sounds absurd, but is it possible to save the details of a session onto a single file ? I not sure but when i had worked on vector Linux, i had used some command to save sessions at the terminal. Is there any analogous command in Ubuntu 10.04 also ?
View 2 Replies
View Related
Jun 15, 2011
do you guys know how to add a user to a linux box without using useradd?I'm working on a project to disect the process of adding users, but can't use useradd command.I know this involves modifying couple of files such as /etc/passwd, /etc/groups, etc..but i'm sure there is more to it.
View 3 Replies
View Related
Nov 18, 2010
I have install RHEL5 and created normal user as "test". When I login as root user, I can run crontab command but when I login as test user, I can't run crontab command and throws error as "cron/test: Permission denied". how to enable crontab command for test user as well?
View 3 Replies
View Related
Jun 7, 2010
I need to figure out a bash command to list all users logged in at or after 5pm - 5pm being the specifier in the command.
Code:
Command seems to be the easiest way to display users but it specifies all users log times.
I've also fiddled with the lastlog command to no avail.
View 2 Replies
View Related
Mar 19, 2010
Can someone please tell me how I can use grep to display all users running a particular command.
View 3 Replies
View Related
Aug 6, 2011
What is the best way to prevent some user run some command? For example every body can run at and batch command and 3 or 4 special users prevent run these command?
View 7 Replies
View Related
Jan 5, 2011
I am trying to setup a system to allow normal users to execute a command without using sudo. Is this possible?
View 6 Replies
View Related
Dec 12, 2010
How can I add user on LDAP to my Linux server ?
View 1 Replies
View Related
Feb 10, 2010
I am trying to learn shell scripting from a book and all I am doing is following few instruction from the book. Now this is what I am doing. I am trying to add a user using the useradd command so I run the following at command prompt root@S8500C_9>useradd ajit. The first time when I add this user I was successful.Later I deleted this suer using the userdel -r ajit command.Now when again I am trying to add this user it gives me following error. useradd: group ajit exists - if you want to add this user to that group, use -g. Now when I try using the -g option with the useradd command it gives we all the set off options avaiable to use along with the useradd command but doesnt create the ajit use
View 5 Replies
View Related
May 25, 2010
when i see /usr/bin there is no useradd command. and i want to add a user.if i type the command it is shooting an error saying command nt found .how should i create a user.
View 3 Replies
View Related
May 2, 2011
getting a error return code for useradd commandthe return code is 1cite or tell me the explanation of return code 1 .
View 1 Replies
View Related
Mar 9, 2011
I encountered a question in the Redhat Skills Assessment regarding useradd: Which of the following cannot be defined when you create a user account with useradd?
a* A password expiration date.
b* The user's primary group.
c* The user's default shell.
d* The user's NIS or LDAP group.
e* The user's home directory.
Which is the correct answer? I have my own thinking which will be explained later.
View 2 Replies
View Related
Aug 26, 2010
I've been asked by my professor to add the list of users to a linux server (not sure of the OS type I think he said debian) but anyway. He gave me this script to add users.
Code: #!/bin/bash
# Script to add a user to Linux system
if [ $(id -u) -eq 0 ]; then
read -p "Enter username : " username
read -s -p "Enter password : " password
egrep "^$username" /etc/passwd >/dev/null
if [ $? -eq 0 ]; then
echo "$username exists!"
exit 1
else
pass=$(perl -e 'print crypt($ARGV[0], "password")' $password)
useradd -m -p $pass $username
[ $? -eq 0 ] && echo "User has been added to system!" || echo "Failed to add a user!"
fi
else
echo "Only root may add a user to the system"
exit 2
fi
I need to see if I can get this script to read a file that list the usernames and their passwords using the pipe command (or some similar command) so I can just do it in one batch. I've done some searching but there are so many vairiations of the code that I've confused myself. Also, I'm not too familiar with linux, it's been a few years since I've used it but in the prior script, I need to add the users to an existing group named "forensics". Which line would I change/add in order to do this?
View 3 Replies
View Related
Feb 14, 2011
I know this is normal behaviour but I'd like to know why. When I type the users command in the terminal I'm shown twice.
View 5 Replies
View Related
Jul 7, 2010
I am trying to find a method or tool to know the exact command history of all my users.I have tried to use "psacct" ,but it is not solving my perpous as it is only giving the command name.means let say 10 users have used "rm" command to remove 10 differint files then I want to know which user has removed what file.
But psacct will only give me the command name like rm used bu the user name.Then I tried to use the "w: command but it is also not solving the problem..
View 6 Replies
View Related
Sep 30, 2010
Just wondering is there a command that would show me the details of whose currently logged on and how their logged on i.e. ssh/samba etc?
View 5 Replies
View Related
May 19, 2011
I am bulding my own image based on 2.6.32 kernel, I wish to add a guest user:
In a script thats invoked by the makefile, I use 'useradd' command & this updates the shadow, passwd files under /etc on the host, is it possible to tell the command to create the shadow / password under some other folder on the host? may be /tmp?
View 2 Replies
View Related
May 18, 2010
I am using qmailserver. I login through webmail but today I installed openwebmail instead of webmail. Its ok, but I cannot login my existing users. It login only new users which I created. and email id come with fully qualified name like saran@www.example.com, so I need saran@example.com. How I do this?
View 1 Replies
View Related
Jun 17, 2010
I'm using Ubuntu Server 10.04 and I'm also using OpenSSH 5.3. I have SFTP-only users in a chrooted environment. Users are able to login, change directories, upload and download files, but as soon they attempt to give the 'ls' or any list directory. the server disconnects.
View 1 Replies
View Related
Aug 22, 2010
i'm working on a small servermanagement app in php to manage the ubuntu server. Someone told me I have to use the shell_exec() command in php to execute the commandlines in ubuntu.
I did a ping test wich works... PHP Code:
[code]....
But I can't seem to add any users. When I list my user using "users" command in ubuntu, I only see my loginname. How do I add users using php?
View 2 Replies
View Related
Nov 5, 2010
I have set up the sodoers file to allow everyone in "group1" full sudo permissions without needing to enter their password.
Is there any way to allow users to perform everything except the shutdown command?
View 5 Replies
View Related
Jun 25, 2010
i am a new bee to SUSE. and managing a db2 instance on a user db2inst1. unfortunately. one i given a command userdel -rf <another name> after this the home folder is missing . i think it was deleted after the command.
View 4 Replies
View Related
May 31, 2010
What's the command to delete bash command history?
View 4 Replies
View Related
Jan 25, 2011
i have 3 groups on a samba server with about 30 user per group.I would like to know how to delete all the user in a group before adding new users.
View 1 Replies
View Related