Creating users by NEWUSERS command but system is not accepting
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Creating users by NEWUSERS command but system is not accepting
Hi,
I am creating users in RHEL 6.3 with "newusers" command. I have created text file identical to /etc/passwd file (exported from excell into txt and modified it) - which is containing around 600 users name(11characters), password(15 character), UID, GID(groups created separately), home dir, shell. After creation when I am trying to login through any of the newly created login IDs through login screen - after providing the password, screen is going blank and after few seconds it is again coming back to login screen - unable to login. Initially thought due to password length or user name length it is happening, but separately checked by creating user and password through GUI with same length and it is working w/o any problem. Please help.
A couple of questions. users in RHEL 6.3 with "newusers" command. I have created text file identical to /etc/passwd file (exported from excell into txt and modified it)
When you less the file, do you see any characters you weren't expecting?
Did you grep /etc/passwd to see if the users were created (perhaps without working passwords)? separately checked by creating user and password through GUI with same length and it is working w/o any problem.
Did you try just passing a file with a single new user on it, conforming to the format that is spelled out in the "newusers" manual page? pw_namew_passwdw_uidw_gidw_gecos: pw_dirw_shell
Thanks for your replies - problem solved. During import it was taking extra junk character after shell field, when removed everything started smoothly.
Thanks to all of you.
Presently I am facing two different problems, if you kindly help -
1. after creating the users, all usernames are coming in the login screen - I don't want this but unable to understand where and how to start.
2. The same server is having samba also for user home directory - so I have to import thsese users again into samba. How to do it in batch?
I checked other posts related to this but unable to understand them.
If the users were imported into the Samba server as part of your earlier issue, they should have accounts and UIDs/GIDs already in place. If not, you'd add them as users on the Samba server in much the same way you did before.
Thank you for your reply but unable to understand the part - "you'd add them as users on the Samba server in much the same way you did before" - the same newuser command will work? how?
Hi All,
Integration with AD complete as I am able to login from any terminal to any server under AD. But if I am logging from a linux(RHEL) I am getting following errors -
A. "Could not retrieve information about the file - Error starting file /home/domain/username - no such directory"
B. "Could not update ICEauthority file /home/<domain>/<username>/.ICEauthority"
C. "There is a problem with the configuration server(/usr/libexec/gcon-sanity-check-2 exited with status 256
D. "Nautilus could not create /home/<domain>/......
any idea?
My configuration is - there is one AD with 2 windows server and 2 RHEL 6 server. User home directories are on one one rhel server, samba also configured on it for publishing the home directories(could not publish till date except one or two for testing,as the no of users are more than 600 & could not find out how to publish them with login name, the name of the home directories are identical to login name and kept on a separate volume - which is a storage volume).
Hi All,
Other than the above problems regarding the logging in from linux terminals, I am not able to connect to the shares which are user home directories(initi I have published one directory & trying to connect from other terminal). Whenever I am trying to connect with share it is saying NT_STATUS_BAD_NETWORK_NAME. For checking I used -
#smbclient -L Server Name -U username@domain name
It gave me exact output and showing the user share.
But whenever I am trying -
#smbclient //server/user share -U username@domain name
after taking password it is showing "NT_STATUS_BAD_NETWORK_NAME"
I checked the log is it showing - [2014/07/26 15:09:38.010479, 0] smbd/service.c:988(make_connection_snum)canonicalize_connect_path failed for service s2015cse001, path /home/GCETTB/s2015cse001.
This is happening after joining AD.
Same problem is happening on the SAMBA server also - though user name is a valid name on that server and user has been added to the smbpasswd file also.
you'd add them as users on the Samba server in much the same way you did before
When a user logs into a network file server they have to have an account. It's the account that establishes the rights that the particular user can exercise, what files they can edit or view, for example. If you have windows users who need access to a Samba file server, Samba has to be able to authenticate the users identity and it has to have some direction (normally it's derived from the user id or group id of the user logging in) to limit their access. If that information is not being supplied across the network (from a security token source like an AD server or Kerberos KDC) then the user has to have a local account.
Quote:
NT_STATUS_BAD_NETWORK_NAME
A really useful tactic for solving problems is to take the error message and do a search on it. You can do it on site by clicking search up by the menu bar (and search linux questions specifically) or you can do the same thing in google. In this instance, however, you'd get the same result. Are you using SWAT?
That guy did an very useful thing, if you look at his solution, he changed the logging level to 3, which gives you more detail in your logs.
Try a couple of solutions suggested or do some more reading from a google search. Keep track of what you've tried and let us know what you've done to this point and then, if you're still stuck, post back with that information and we'll be better able to help you.
I have to import users into SAMBA(smbpasswd) in batch. It is around 700 now. User addition in RHEL part is done with creation of respective home directories. Please help me with a script which will import user names and passwords from a text/csv file - whatever possible.
I have to import users into SAMBA(smbpasswd) in batch. It is around 700 now. User addition in RHEL part is done with creation of respective home directories. Please help me with a script which will import user names and passwords from a text/csv file - whatever possible.
Again, we are not going to write your scripts for you....and this is the THIRD time you've posted this same question. Even though you already HAVE a script, as you posted in one of your threads.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.