LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-21-2005, 02:54 AM   #1
navaladi
Member
 
Registered: Dec 2004
Location: chennai
Distribution: chennai
Posts: 81

Rep: Reputation: 15
file permission


Hi,
i am mandrake 10.0.i have two users in lab.one student and staff.
for 20 students only one accound like student.
/home/student/suresh is my directory..
student is common for all students...
so every one entering the student can access view my directory even they deleted my file.

so i need to secure my file with password..
when they click on the folder it should ask the passwd.
so even when i click it ask me the passwd.

so not possible create the user name for 20 users so i need to lock my file with password.

i am waiting for ur heart full help...
 
Old 02-21-2005, 03:08 AM   #2
vharishankar
Senior Member
 
Registered: Dec 2003
Posts: 3,161
Blog Entries: 4

Rep: Reputation: 135Reputation: 135
Edited out. Sorry didn't understand your question.

Last edited by vharishankar; 02-21-2005 at 03:13 AM.
 
Old 02-21-2005, 03:20 AM   #3
navaladi
Member
 
Registered: Dec 2004
Location: chennai
Distribution: chennai
Posts: 81

Original Poster
Rep: Reputation: 15
now i will clearly explain u
my doubt is,

i need to lock my specified folder ( with password)
 
Old 02-21-2005, 03:37 AM   #4
vharishankar
Senior Member
 
Registered: Dec 2003
Posts: 3,161
Blog Entries: 4

Rep: Reputation: 135Reputation: 135
Why are all the students put under one user name? That will give access to all students to every folder.

The only thing I can suggest is to ask your system admin to make different user accounts for each student to enhance security and privacy.
 
Old 02-21-2005, 05:18 AM   #5
enemorales
Member
 
Registered: Jul 2004
Location: Santiago, Chile
Distribution: Ubuntu
Posts: 410

Rep: Reputation: 31
Yes. If there is the same account, then the only thing you can do is to put a password to your content, but cannot avoid others to delete your files. Are you sure is the same account? Does anyone have the SAME PASSWORD? Because in that case one user changing the account's password will leave all the others without access.

Maybe you are all in /home/student/, but they are different accounts. In that case you can change the permissions of /home/student/suresh by using the chmod command. Something like

Code:
chmod og-rwx /home/student/suresh
will prevent other to read, write and execute the directory. Yet you can use only og-w to prevent modifications, but allow reading.

Hope it helps...
 
Old 02-21-2005, 05:45 AM   #6
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Rep: Reputation: 30
hello sir this will un locked by using terminal

chmod a+rwx /home/student/suresh

this will enable all to access my dir. and also ur command not locking my dir.

chmod og-rwx /home/student/suresh
not locking the dir.

every user open the terminal and unlock the dir...

is there any method from this?
 
Old 02-21-2005, 05:43 PM   #7
shengchieh
Member
 
Registered: Jul 2004
Location: Palo Alto, CA
Distribution: #! Korora
Posts: 472

Rep: Reputation: 30
First, all users should have a different name. You can
lump them in the same group. Use the control center
to set them up. On the console, if you know chmod, chgrp,
and chown, you should be able to manipulate everything.
In specific, chmod can used to have read/write/execute
permission for different groups. Learn these commands
via man page.

Sheng-Chieh
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
File permission help! jorasmi Slackware 7 08-15-2005 11:07 PM
About the file permission ust Linux - Distributions 1 05-06-2005 04:05 AM
The file permission ust Linux - Distributions 1 05-05-2005 05:37 AM
file permission ust Linux - General 3 04-20-2004 07:14 AM
File Permission glock19 Linux - General 4 01-02-2002 08:40 PM


All times are GMT -5. The time now is 12:26 PM.

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