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.
But when I am trying to login I get an error with username : anand and password : pwd , i get an error saying Access Denied. I think it is a problem with the group that I have given. Do I need to anything additionally after creating the group.
If this user is going to have a shell et al, you probably want to give their initial group as users, and then additional groups (-G) as whatever else, such is the case as projuser.
Thanks for the inputs. But tell me something what if I want the new user to have a group created by me itself, in this case projuser. So do I need to need to give additionaly permissions to the group. Or anything else. Kindly let me know.
If you want a new user, or set of users to belong to a group, you assign that with the -G option. This is assuming they will have accounts on the box and access to the box. If they are virtual users (samba users, website logins, virtual email) then they don't need to have actual accounts and don't necessarily need to belong to the users group (-g users).
To give your users permission to a specific folder, and only certain users, that's the case where a special group (projuser) would come into play. Not every user on your system necessarily needs access to that folder, so you give specific users access by adding those users to a group you've created (projuser) and own that folder to that group.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.