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.
You can define groups by editing /etc/group - just choose a GID that isn't in use and give the group a name. Then when you create a user you can assign your new group to be their default group.
and this is usually quicker than editing the file by hand. but of course, by hand, you can pick your own unique GID for the group. but you can do that as well once created by the command too.....whatever floats your boat.
I just wanted to say that I would not reccommend a newbie editing the /etc/group or /etc/passwd files by hand. A simple mistake could lead to an unusable system. Use the following utilities...
Yes, I totally agree with that. Editing things by hand is a bit scarry, and since the first post, I have learned quite a bit.
Getting into linux, can be a little overwhelming, especially comming from a Winblows environment. I am liking the *nix way of things more and more each day! It is a great OS, but it definately is NOT like the Ol' Point-and-Click environment, where all the actions happen behind the scenes, and ya have no idea what's happening. In *nix, "I" get to control what goes where, when, how, etc.. etc.... And I like having that control. Makes ya use your brain again, which is a good thing, especially after the "Brainless world of Winblows!"
Anyway.....
I agree that using those util's, are a bit more user friendly than editing by hand. In fact, I have found the 'linuxconf' a great util for setting up alot of things.
I appreciate everyone's help, and will be posting again, if I need some more help.
Thanks everyone!
(Please DO NOT Post REPLIES to this TOPIC, as I have found the answer that I needed )
.
can't login after editing /etc/passwd and /etc/group
Hi,
I have two machines
one runs RH6.2 and the other
RH7.1 (which was recently installed)
This morning I set out to change the /etc/passwd
and /etc/group files on the RH7.1 machine
to be the same as on the RH6.2 machine. When I mount dirs from the RH6.2 machine the the ownerships are all messed up.
Anyway, on the RH7.1 machine I made a modfication to /etc/passwd(changed the uid) and /etc/groups.
I executed chown -R user1 /home/user1/
then I did a chgrp -R group1 /home/user1/
and should now be ready to roll.
I can get past the login page and GNOME starts up
but I end up with only blank blue screen.
Interestingly, I can login in as user1
in "failsafe" mode. This suggests the
ownership of a GNOME file needs to be changed.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.