Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
11-26-2010, 05:58 AM
|
#1
|
LQ Newbie
Registered: Nov 2010
Posts: 1
Rep:
|
Setting permissions on different groups.
Hi,
I don't know if I can do this with linux.
We are a school and we share a samba folder with students and teacher groups. What we are trying to do is:
- Give students group users the permissions to rwx own files in folder
- Students must not be able to do anything with others files. I mean nothing so, at most, they could see the files in folder but not read it.
- Teachers can do anything with files in folder (this is the easy part :-))
As you can imagine, the idea is that students deliver their exams in that folder without the ability to read/copy the other students files.
With sticky bit we can restrict students permissions to their own files, that is ok, but how to restrict all the permissions on other students files without restricting student access to that folder?
Thanks in advance!
|
|
|
11-27-2010, 05:50 AM
|
#2
|
Senior Member
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125
|
It may take some tweaking but I am sure this can be accomplished. I think the solution will require a combination of Samba security and linux file permissions. Each student will need their own directory, which you have. The permissions should have owner RWX permissions, but 'others' should not even have read capability. Using proper authentication in Samba, each student should then be restricted to their own directory. What I am not sure about is if each directory will need it own Samba configuration or if you can create a single share and make these sub directories. I think that should work, but you will need to confirm.
As far as the teachers go, I can think of two ways to approach this. First, as the 'root' user will have access to the files regardless of the permission, the teachers could either use sudo or become root and perform their actions. Do not give this capability to the students. Second, you could create a group for the teachers and assign file and directory permissions for that group.
It wasn't clear from your post what you had tried and what result you achieved. That information may be helpful in fine tuning a solution for you.
|
|
|
All times are GMT -5. The time now is 02:51 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|