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.
I am in charge of setting up a server for a class that I am in, and I am trying to figure out how to do something the instructor wants. He wants to set it up so that he has an account that will be able to look at the files in every student's home directories, but other students won't be able to look. How will I set this up?
Though we don't necessarily like to do peoples homework or study work for them as the instructor probably wants you to learn this yourself instead of being told how to do it:
I'll give you some pointers.
man chmod
man chgrp
man chown
Create a group that your instructor belongs to, change the group ownership of your /home directory to that group. And make sure you have read access assigned to the group. And then make the world ( which is everyone who is not you or in that group ) have no read or write access.. etc.
This isn't the assignment... I'm the only student administering the server that will be used for the class.
I was thinking something along the lines of what you are saying, students shouldn't be able to read each other's home directories. I'm wondering, if all students are members of this group, won't they be able to read each other's home directories? Is it possible to assign group ownership to a group you are not a member of?
youd probably want to make a *group* called "teacher" and then set permissions for that so he cannot access some system devices/blocks but read students things. basically he has read/write access to everything in /home.
also trickykid is right, read those man pages and you'll be wiser.
i strongly suggest against giving the teach root access. unless he/her are linux experianced and know what they are doing.
If the teacher has root access, he could read anything he wants.
Or... If you are a student with a username of mikej you are also a member of the group mikej. So you could make the teacher a member of each student's group. A lot of groups I know, but you don't have to add a group to each student.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.