LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 12-31-2004, 01:18 PM   #1
xconspirisist
Member
 
Registered: Dec 2002
Location: United Kingdom
Distribution: Ubuntu
Posts: 276

Rep: Reputation: 30
Password protect directorys?


Is it possible to password protect a directory? Its absolutly essential the contents are not seen to anyone apart from my user account.
 
Old 12-31-2004, 01:46 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Mineral, Virginia
Distribution: Debian 11
Posts: 7,908

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
"Is it possible to password protect a directory? Its absolutly essential the contents are not seen to anyone apart from my user account."

I have a directory with sensitive information in it. I encrypt the contents of that directory and a password is required to remove the encryption and make one of the files readable.

Another method of protecting the directory is to set the permissions to 700. Also set the permissions of all subdirectories to 700. Set the permissions of every file in the protected area to either 700 or 600. Set the ownership of every directory and file to user. Create a new group name and only include user in that group. Then set the group ownership of every directory and file to the unique group.

-----------------------
Steve Stites
 
Old 12-31-2004, 01:50 PM   #3
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
Trying looking for information on ACL (Access Control Lists) which can be used for this. The best site I've found so far is ACL bestbits Theres also an article in Linux Magazine I've found useful.
 
Old 12-31-2004, 09:26 PM   #4
xconspirisist
Member
 
Registered: Dec 2002
Location: United Kingdom
Distribution: Ubuntu
Posts: 276

Original Poster
Rep: Reputation: 30
Excelent, thanks very much.
 
  


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
Password protect souvik Programming 3 11-06-2015 02:35 PM
Password protect a directory aquatux SUSE / openSUSE 6 08-02-2005 12:56 AM
Password Protect Folder?? sall Linux - Software 5 07-18-2005 07:58 AM
Password protect a website J_K9 Programming 5 07-07-2005 09:12 AM
Password protect a directory Stephanie Linux - General 6 03-26-2002 03:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:38 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
Open Source Consulting | Domain Registration