LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-12-2012, 05:53 AM   #1
gobinath1989
LQ Newbie
 
Registered: Sep 2012
Posts: 9

Rep: Reputation: Disabled
Smile Linux folder passwd set


Hi this gobi,

plz tell any one how to set passwd for folder..


Best Regards,
S.Gobinath
 
Old 09-12-2012, 06:10 AM   #2
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Rep: Reputation: Disabled
https://en.wikipedia.org/wiki/TrueCrypt
 
Old 09-12-2012, 06:18 AM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2 on Lenovo Thinkpad W520
Posts: 7,740

Rep: Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661
Hi and welcome to LQ.

In Linux every file (folders included) belong to one user and rights for reading or writing it can be granted to this user, the users to which this one belongs to, or all users.

So to protect the folder you will have to use these commands: "chown" to change to owner if needed and "chmod" to set up the permissions. See "man chmod" and "man chown" to know more. Optionally these commands can be recursive, i.e. thees settings can apply to all sub-foldesr and files in the folder.

Last edited by Didier Spaier; 09-12-2012 at 06:19 AM.
 
Old 09-12-2012, 06:31 AM   #4
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Rep: Reputation: Disabled
Simple permissions don't give you passwords for directories. If OP really needs to protect some dir with password, TrueCrypt is the way to go. Plus TC will work if the PC is booted from LiveCD and the person then has root permissions.
 
  


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
How to set up public folder/ share folder for my network? Kiwi89 Linux - Server 6 10-31-2011 06:10 AM
select only user who use /bin/bash shell from the /etc/passwd folder rohitbhpune Linux - Newbie 3 10-11-2011 10:21 AM
Swat uses PAM but changes linux passwd not samba passwd Peter@KKVS Linux - Networking 0 11-26-2006 05:20 AM
my mysql-3.23.58 can't set root passwd bear_bear Linux - General 1 01-05-2004 04:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:55 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