Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
The problem is the number in the front. This is set in stone on our network at school, and there's nothing I can do. I would like to have samba allow access to about five people on this school network with about 2500 users.
Anyway, I would like to add these users, but adduser whines about it. I'm root dammit, no talkback!
Is there anything I can do?
EDIT:
An alternate solution is to make samba prompt for passwords, rather than just take whatever windows sends it.
You can use brute force, and edit
/etc/passwd and /etc/shadow using
your favourite editor ;) ...
Use one existing user
as "template" .... copy & paste
the line, change the name and
the home directory and make
sure you change the numeric
UID, too ... that done, save passwd,
and change the passwords for
them using passwd
Originally posted by Tinkster You can use brute force, and edit
/etc/passwd and /etc/shadow using
your favourite editor ...
Use one existing user
as "template" .... copy & paste
the line, change the name and
the home directory and make
sure you change the numeric
UID, too ... that done, save passwd,
and change the passwords for
them using passwd
If you really want to use brute force, you can edit adduser. It's just a frontend script for useradd/passwd. Lines 131-148 deal with disallowing 'illegal' names.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.