LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 01-16-2003, 11:26 AM   #1
JHuizingh
Member
 
Registered: Jun 2001
Distribution: Gentoo 1.4
Posts: 140

Rep: Reputation: 15
Permissions Questions


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?
 
Old 01-16-2003, 11:46 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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.
 
Old 01-16-2003, 01:48 PM   #3
JHuizingh
Member
 
Registered: Jun 2001
Distribution: Gentoo 1.4
Posts: 140

Original Poster
Rep: Reputation: 15
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?
 
Old 01-16-2003, 02:23 PM   #4
kmistry
Member
 
Registered: Sep 2002
Distribution: Debian 3.0 (Sid)
Posts: 67

Rep: Reputation: 15
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.
 
Old 01-16-2003, 02:41 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Few questions: permissions, graphics mainly... Kramer Linux - Hardware 3 08-18-2005 05:03 PM
Permissions: Fstab and some other mounting questions azzurro Slackware 13 08-07-2004 09:30 PM
Basic permissions questions Punker51 Linux - Newbie 4 12-06-2003 05:26 PM
simple questions about permissions chrismiceli Linux - General 6 06-15-2003 12:00 PM
Security and Permissions Questions gauge73 Linux - Newbie 3 03-25-2003 10:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration