Server :: Add Users To Box Without Using Useradd

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


ADVERTISEMENT

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 View Related

Server :: Add A User With Useradd Command?

Mar 26, 2011

I want to add a user with useradd command, however I get this error:

Code:
mahmood@node1:home$ sudo useradd user2
useradd: cannot lock /etc/passwd; try again later.

View 3 Replies View Related

Server :: Useradd & Smbpasswd Using Shell Script?

Apr 5, 2011

how to useradd & smbpasswd using shell script.The below script i tried but its not working.

echo "$ecare2@" | smbpasswd -as "$ramecare"

View 5 Replies View Related

Server :: Script To Add A Secondary Group To All Users Except System Default Users?

Jun 28, 2009

script which can add a secondary group to all existing users except system users in linux.

View 5 Replies View Related

Server :: All Users SSH - YES - All Users Console - NO

May 18, 2010

I have inherited a RedHat 5.4 server that is having an odd issue. Root and all of the user accounts can log in via SSH. Not a single account can log in via the console (sitting in front of the server). If I bring it up in single user made, I can log in with root all day long.

I want to say that this has something to do with PAM, but this is when I play my "Noob" card. Could anyone possibly steer me in the right direction to figure out what is going on?

View 2 Replies View Related

General :: Use Useradd Command Against LDAP?

Dec 12, 2010

How can I add user on LDAP to my Linux server ?

View 1 Replies View Related

General :: Add A User Using The Useradd Command?

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

General :: USERADD Command NOT Found?

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

Slackware :: Can't Make 'useradd' Work

May 10, 2010

Code:
useradd -u 8001 -g luc -p mypassword -s /usr/bin/bash -d /home/luc luc
Open another terminal:
Code:
luc[159-0]test> ssh luc@61.62.63.64

[Code].....

Jump back to the other terminal... Try SSH login... Success!

'adduser' works, 'useradd' doesn't. Why? I have read the man pages several times and can't find the error in my command line.

I have a similar problem with groupadd

This fails: groupadd -g 8001 staff

This works: groupadd staff

View 9 Replies View Related

Server :: Apache - Free Access From Lan Users And Password Access To Wan Users ?

Jun 26, 2009

Im trying to config my intranet to be accessible from inside the network (lan) without need of password and ask for a passwd for those who are viewing from Wan ....

Today my intranet can only be accessed from Lan, external access give me an Unauthorized message, I took look around, try #irc and still can get the appropriated help, I hope that someone here could help me on that...

A piece of my config:

Code:

View 4 Replies View Related

General :: Return Code 1 For Useradd Command?

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

General :: Creating Account With Useradd Command

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

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

Ubuntu :: Create One User Without Password Using Useradd Command?

Jul 1, 2010

I want to create one user without password using useradd command. Is there any way we can do the same? I have googled it but couldn't get the perfect solution

View 1 Replies View Related

Ubuntu Servers :: ProFTPD - Useradd Fails But Adduser Ok

Aug 4, 2010

Proftpd is installed and running fine on 8.04 server. I want to streamline the process of adding users. Adding a ftp user with USERADD fails (user is created but connection fails when trying to connect with ftp client).

Code:
useradd -d /ftp/ftphome/myuser -g ftp -m -p mypassword -s /usr/sbin/nologin myuser
But, ADDUSER works:
Code:
adduser myuser
usermod -d /ftp/ftphome/myuser -g ftp -m -p mypassword -s /usr/sbin/nologin myuser

It's a bother because I want to automate the process, and ADDUSER has all those prompts and asks for the password twice.

View 2 Replies View Related

General :: Add A New User With Useradd On Debian 4.0: Segmentation Fault

Jun 30, 2010

I would like to add a new user with useradd (on Debian 4.0), I get the message Segmentation fault. I made a strace, that says: access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) I have read maybe the libc6 is missing or damaged, so I installed it again (apt-get install libc6, install was successfull), but the problem is still there. I touched it (touch /etc/ld.so.nohwcap)

View 7 Replies View Related

CentOS 5 :: Useradd Command - Finding 10 Last Files Sorted

Apr 6, 2009

I work under centos 5, I would like to know which command to use in order to find where the useradd command is geinstalled. Second How can I find the 10 last files sorted (reverse) from the /etc directory.

View 2 Replies View Related

Software :: Cannot Create New User (useradd: Unknown Group MyGroup)

Jun 7, 2010

I try to add a new user but got error (shown in title). Is it possible to create a new user and create a new group at the same time? Or should I create the new group first then the new user?

View 1 Replies View Related

General :: Useradd Command To Create Passwd / Shadow & Other Files Under Different Directory

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

General :: Useradd Creates User But Fails To Make Home Directory

Oct 7, 2010

when I try to add a user it fails to make the corresponding home directory. I can still su to the user, set the password, and everything else. the output is as follows:

$ useradd username
useradd: cannot create home directory /home/username

I read that this could be a result of there not being enough space but if I do df -h, i see that only 88% of the memory is being used.

View 14 Replies View Related

Server :: Collecting Email From Remote POP3 Server And Delivery To Local Users?

Jul 12, 2011

I am having problem to collecting email from remote POP3 (all the emails for a domain is stored here) and distribute it after collecting to several users defined to Linux server. I have install postfix in Linux server for email distribution.

View 3 Replies View Related

Server :: Merak Mail Server All The Users Should Be Able To Get That Content Automatically In Their Outgoing Mails?

Feb 22, 2010

I would like to set disclaimer like content in my meral mail server, so that all the users should be able to get that content automatically in their outgoing mails.

View 3 Replies View Related

CentOS 5 Server :: Local Users Cannot Upload Files To VSFTP SERVER

Nov 25, 2010

I've setup a Lamp Server for Testing, The Lamp Server is Up & Running on CentOs 5.5

I am now trying to setup a VSFTP server where local users can upload files to there home directory so that Apache can serve web pages straight from the directories of system user home/accounts giving users the ability to run their own web sites which are hosted off the main server [tutorial here: [url]

So far i have been able to serve/display index.html files from the users home directory [url] but so far i cant upload files to any user home directory, every time i try to upload a file with filezilla i get this error message: 553 Could not create file. Critical file transfer error

I have searched online for similar problems like mine and so far i've tried alot of the solution but none seem to work. I'm confused, dont know where i went wrong, i put the users in a group called ftpusers and here are the permissions on the users (test, ftpuser & testftp) home directory. have a look an tell me where i went wrong :(

Also the root directory where the web pages are served from is called public_html here are the permissions

Here is my vsftp.conf file can someone check it to see if i made any errors in there:

View 14 Replies View Related

Server :: Multiple Users Logging Into Same Windows Server And Using Xwindows?

May 18, 2010

I have an issue with users logging into a server. There are multiple (5 or so) database admins that have to log into a windows 2003 server and from there log into a red hat server. Once they are in the rhel box they execute an app (let's say xclock) that gives them an xwindows session on their desktop. Currently only one person can do this at a time, but they have asked me to configure it to allow multiple users to log into the red hat box from the windows server and run an xwindow.

View 6 Replies View Related

Server :: Linking Users To Windows File Server

Mar 22, 2010

I would like to know how to link linux users to have their windows folder (on fileserver) into linux..I have a windows fileserver which hosts AD users home (personal) folder.I also have linux (redhat) with SAMBA. users have their home folder in linux but also want to access their home folder in windows. Is there any solution which automatically creates links in linux home folder, when a user logs into linux he can also view / edit his files in windows home folder.I know to smbmount but there are 500+ users and creating smbmount / smbclient for each would be time consuming also many of the users are dynamic (added / deleted frequently).

View 1 Replies View Related

Server :: Roaming Users Getting Flagged As Spam On Server?

Apr 16, 2010

Amavis-new on my mail server is marking my emails as spam, like so:

Quote:

Apr 16 12:15:52 myserver amavis[30979]: (o3GIFltt008868) Blocked SPAM, AM.PDP-SOCK [xx.xx.xx.xx] [xx.xx.xx.xx] <myemail@mydomain.com> -> <myfriend@hisdomain.com>, quarantine: spam-w1hxRn9Pr4P6.gz, Message-ID: <4BC8A9E8.2070108@mydomain.com>, mail_id: w1hxRn9Pr4P6, Hits: 7.844, size: 6763, 1986 ms

The mail server is not on my local LAN, and all the primary users are roaming. They connect via TLS auth, which is required to make a sendmail connection to my server. I could whitelist all addresses in my domain, but then anyone spoofing my email wouldn't be seen as spam. How do I simply tell amavis-new and/or sendmail not to spam scan TLS authenticated users?

View 4 Replies View Related

Server :: How To Different Users See Different Files

Jan 13, 2010

There's something I would like to do. It's simple, it MUST be possible. I can't find any way to do it by Googling it. I'm must be looking for it in a wrong way.Let's say I have a directory called dir1. In it, I have these files: A1, A2, A3 belong to user "userA", files B1 and B2 belong to "userB". Both users are in group "groupNO", but the files are in group "groupYES".

What I want is this: if someone tries to mount the folder by NFS (or could it be done with Samba?), as userA, they can only see (or read) files A1, A2, A3,as userB, they can only see (or read) files B1 and B2,as a user in groupYES, they can see and open all the files.This is just the principle. If I need to sort them into directories or use another program on the server-side, that's fine with me. I just want the user to just have to mount the folder over the LAN with a user name and password. I'm fairly sure I can do it by SFTP, but, again, I want the client to be able to MOUNT the folder on their local machine over the LAN no to user a special client.Is that possible? Do I need LDAP? (From what I understand, LDAP is separate from the OS-level mounting process, which is not what I want.)

View 6 Replies View Related

Server :: How To Look Through All Users Crontabs

Mar 3, 2010

there are at least a dozen users who have a crontab with stuff running. Is there a way to look at all the crontabs at once? right now i just keep doing a su to whichever user, then do a crontab -l.but i need to check what looks like 100 more users, and hoping there's a way to save me from manually having to do this for every single one of them.

View 9 Replies View Related

Server :: Set Up Ssh To Allow Users To Ssh Into The Machine?

Jun 1, 2009

This is my first attempt at setting up a server. I have just installed Ubuntu Server 8.04 fresh from the CD. I have a fixed IP address. I just cannot seem to be able to ssh into the darn thing.

From a Solaris unix box, I get the message "Local: Bad packet length 1349676916."

From a SuSE Linux box, I get the message "Read from socket failed: Connection reset by peer"

From a mac box, I get the message "Connection closed by 'IP address'"

I can ssh out to another server just fine. I don't know what to even do.

View 20 Replies View Related







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