Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 08-24-2005, 03:29 AM   #1
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...


Open Work Folder i see


If i double click on grade1 folder in XP is see a list of students names in that class


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, 03:48 AM   #2
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.
Old 08-24-2005, 04:05 AM   #3
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, 04:12 AM   #4
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


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

All times are GMT -5. The time now is 09:35 PM.

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