LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-17-2003, 12:39 AM   #1
dsgdevil
Member
 
Registered: Jan 2003
Distribution: RedHat Linux 9
Posts: 126

Rep: Reputation: 15
password protected directories


what do i have to do to get a firectory password protected?
 
Old 02-17-2003, 01:02 AM   #2
andrew001
Member
 
Registered: Nov 2002
Distribution: Slackware 9.0
Posts: 321

Rep: Reputation: 30
What you are probably looking for is to change the mode, or permissions of the directory in questions.

If you want to use the gui, it should just be a matter of right clicking on the folder, clicking on properties, and then modifying the check-boxes under the permissions tab.

Or, if you want to be a guru, you can try using the chmod command.

Either way, you can set other user's or group's permissions using chmod by getting the sum of the corresponding permissions for 'owner' 'group and 'other' (you can also opt for setgid mess, but that should be necessary here) where r=4, w=2, and x=1.

Example: You own directory "reply" and you want yourself to be able to read write and execute, people in your groups to be able to read and execute, and others to have no privileges, (rwx r-x ---) you would type:

chmod 750 reply

because 4(read)+2(write)+1(execute)=7 4(read)+0(write)+0(execute)=5 and 0(read)+0(write)+0(execute)=0 (750)

So there you have it. chmod is a damn confusing command, and it has some properties i didn't mention here, so you should review it (god knows i had to so i could write this post)

Happy hunting!

~Andrew
 
  


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
video streaming in .htaccess password protected directories Houseofcyn Linux - Newbie 1 12-20-2004 03:05 PM
Apache2: showing password protected directories hamish Linux - Software 7 11-15-2004 01:50 PM
add image to protected directories login box tommytomato Linux - Newbie 2 05-25-2004 09:37 AM
protected directories tommytomato Linux - Security 2 01-11-2004 11:34 PM
Password Protected Directories TheSockMonster Linux - Security 2 05-31-2002 05:07 PM


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