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 |
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.
|
 |
08-24-2005, 03:29 AM
|
#1
|
Member
Registered: Jun 2005
Location: Wycombe, England
Distribution: Mepis 3.4.3 , Ubuntu & Damm Small Linux
Posts: 119
Rep:
|
Chmod rights and folder access
i'v ehad a look on this forum, and can't see anything which might be what im asking, but if there is and this is a dupicate i apologise...
I've got smaba enabled on a linux PC and 10 XP workstations connecting to the Linux PC.. One of the SMB shares is setup for students to save thier work in a frade level folder, so the directory structure looks something like this...
example
Open Work Folder i see
Grade1
Grade2
Grade3
Grade4
If i double click on grade1 folder in XP is see a list of students names in that class
David
May
somchai
If the student wants to save thier work they save it in thier folder... this is a fudge until i get PDC working on Samba, my question is, these kids are youndg and have the tendencie to move/delete/erase these folders because they can't use a mouse properly, or whatever..
How do i use CHMOD or any other command to set up so that the students Cant move delete or destroy the folders, but can save work within thier folder..? and in thier folder they can add files delete files rename files etc, just not the actual folder structure
(The actual final solution will be that they map a drive using a login script directly to thier folder.. but thats not happening right now)
|
|
|
08-24-2005, 04:05 AM
|
#3
|
Member
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940
Rep:
|
you can set a sticky bit on the folder on the linux box, which then means that the owner only is allowed to rename / move /delete the directory .
i think it works as follows
as root:
mkdir blah
chmod 1660 blah
chown root:studnetgroup blah
this should result in the users in group studentgroup can save files in there, but only root can delete the directory
and on top of that i would make backups for the students - you never know what can happen! and you never know when you could make a mistake... so if you work on the server, and something should go wrong and accidentially delete the share... your students would not be too impressed
|
|
|
08-24-2005, 04:12 AM
|
#4
|
Member
Registered: Jun 2005
Location: Wycombe, England
Distribution: Mepis 3.4.3 , Ubuntu & Damm Small Linux
Posts: 119
Original Poster
Rep:
|
Thats great, thank you
|
|
|
All times are GMT -5. The time now is 02:40 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
|
|