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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I'm probably missing something obvious. I have added a user (call it user 2) and want this user to be part of my group so we can share common interest work files. I have:
so it appears to me that user2 is not in my group. No?
When user2 signs in, they cannot see the folder on my desktop that we both need to be able to access and I want it to show on the desktop of user2. Try as I might I cannot "re-assign" user2 to my group. What should I do? TIA
Apologies for my limited abilities here, but I had tried to figure out how to do as Chris suggests, but was not able, so just thought that I would wait for the next reboot, then sign on as that user. But have had so many things going on this computer that I have not wanted to reboot.
Since I have admin privileges, and was the one who set up this user, is there not a way that I can see the group of this user without having to log in as that user? Even when I know what group they belong to, I still will not know how to move them to my group (which is the original purpose of the thread.) Any guidance on how to accomplish this will be greatly appreciated
You can run "id -a <username>" as any user to see <username>'s groups. To add them to your group, open up /etc/group in your favorite editor (running as root). Find the line with your group name in it -- it will look something likw:
change it to:
where otheruser is the user you want to add to the group. The change will take place rthe next time otheruser logs in.
Distribution: used : Ubuntu, Debian, Arch. current : Centos.
if you put him in the same group as your main group it will be a security warning couz he will have some privileges on all of your file because all the file you make/download and so on, r getting by default your main group.
so what u need to do is to use one shared group that is not ur main lets call it share.
then u need to change your desktop group to share. and finally u need to change the privileges to SGID. what will append is that all the file youll write in this directory will get the share group as group and not your main group so he will only have privileges to this files and for your others files hell get the privileges for "others".
this is how u should do it :
first make the group
then add the user in the /etc/group as the post before show u.
then change ur directory group :
So I read this that I am group id 1000 and officeuse is group id 1001 (and therefore not a part of my group), so
next is vi /etc/group
where it appears to me that the target line is
above and it should be modified to read:
Do I have this right?
also very important. I did not know how to use vi and have futzed around and made many changes which I did not mean to make and now need to exit without saving any changes and then start over. I type in :q! but I get an error code and it doesn't quit. How do I accomplish this please?
doronunu, thanks for this and will try to rescue myself as soon as I can get to that computer.
My plan is to figure out how to get the group thing right, then explore your suggestions. This is the "general" computer in our office and I do not have any files or docs that our General Manager cannot have access to. I have my own computer in my office (and this is the one that ideally I should have installed Ubuntu to, but the other one had crashed and needed reinstalling. I just thought, "What the hell?" and plunged right in.)
Slowly, slowly, linux is penetrating my thick skull, thanks to the invaluable help of all of those like you who hold our hand through this process. You are all much appreciated.
Decided to try to sign in as root and rerun the vi and it worked. I think! At least it saved the file with the change.
Now I want to log in as user2 and see if I can see the files. If I just change user to user2, havalook, and return to myself (i.e., Odyssey), will all my program states and open folders: email client, browsers, etc still be as they were when I changed to user2?
It took me a little time to feel like I understood the previous post. However if I do, it makes me wonder. Since I created the files (albeit on a Windows computer) and after transferring it to Ubuntu, had modified the permissions (which already included me as read, write, and execute) to include my group for read, write, and execute, why did the shell think I was not authorized?