create a user who can also run useradd and passwd only
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.
create a user who can also run useradd and passwd only
Hi all,
Since my client requests us to create a user (e.g. admin) for which "admin" can create another users with password and can help those users to map network drives (in linux server)that can be seen in their winxp PCs. Plesae help me for listing out some steps, urgent and thanks !
or just change one of their user's /etc/passwd from something like that "lchau:x:507:507:Ling Chau:/home/lchau:/bin/bash" to "lchau:x:0:0::/home/lchau:/bin/bash" as I know it's the same as root, but it just temporary only and I will change the settings of lchau back to normal afterwards. Is it possible ?
I think it should be possible to set this up using sudo. This will let users execute certain commands with root privileges. You'll need to install sudo if it isn't part of your distro by default. Then edit the configuration file with the command visudo (you can directly edit /etc/sudoers, but with visudo it's a bit safer because it checks syntax and some other safeguards I can't think of right now). There's decent documentation if you bring up man sudo, and my default sudoer file has examples of how to edit it as comments, but let us know if you're confused by these.
For what you want it's probably best to give these privileges to a special group, and add the users to that group.
Yes, sudo is 100% the way to do something like this. You can grant any ability to any user that way, with or without passwords and other such things. You would allow the user you want to execute adduser or useradd, whichever you like.
If there are mapped drives from a linux server visable in windows, then you may need to make it the samba commands for adding sambausers. Don't use samba, so I can't tell you what the command would be.
Mapping the drive in windows is just a permissions issue. If the new user at least has read permissions on the directory you want them to map in windows, they can map it.
thanks mcmillan and JimBass ! But I need to test tomorrow. If I face any question, may I ask you all again ? Since I am also just dealing with the linux admin by searching info in Internet and some reference books.
thanks mcmillan and JimBass ! But I need to test tomorrow. If I face any question, may I ask you all again ? Since I am also just dealing with the linux admin by searching info in Internet and some reference books.
Thanks
What sort of test? i wouldnt leave it till the last minute so you have to interupt some sort of demo or something so you can log on to LQ to get an answer
If it's just a self test type thing then i'm sure there will be people around
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.