LinuxQuestions.org
Help answer threads with 0 replies.
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 08-24-2005, 04:29 AM   #1
fieldyweb
Member
 
Registered: Jun 2005
Location: Wycombe, England
Distribution: Mepis 3.4.3 , Ubuntu & Damm Small Linux
Posts: 119

Rep: Reputation: 15
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)
 
Old 08-24-2005, 04:48 AM   #2
dub.wav
Member
 
Registered: Aug 2003
Location: Norway
Distribution: FC4
Posts: 83

Rep: Reputation: 20
I don't think it can be done with file permissions, but a little googling showed that samba has a recycle module, which works as a trashcan.
http://us1.samba.org/samba/docs/man/...html#id2630177
and
http://us1.samba.org/samba/docs/man/...html#id2630976
 
Old 08-24-2005, 05:05 AM   #3
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
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
 
Old 08-24-2005, 05:12 AM   #4
fieldyweb
Member
 
Registered: Jun 2005
Location: Wycombe, England
Distribution: Mepis 3.4.3 , Ubuntu & Damm Small Linux
Posts: 119

Original Poster
Rep: Reputation: 15
Thats great, thank you
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
chmod rights over ftp/telnet Garp Linux - Security 9 08-04-2005 07:20 AM
Assign CHMOD Rights To Mapped Windows Folder, GaneshParam Linux - Security 0 08-03-2005 06:09 AM
Chmod = no access to home folder! DeathPrawn Linux - Newbie 4 02-12-2005 12:50 PM
user rights when creating a new folder Menestrel Linux - Newbie 3 11-14-2004 06:06 AM
Giving a user CHMOD rights to the /var/www/html directory? scubes13 Linux - Networking 3 08-18-2002 04:38 PM

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

All times are GMT -5. The time now is 05:12 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration