Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-12-2012, 04:53 AM   #1
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,
Old 09-12-2012, 05:10 AM   #2
Mr. Alex
Senior Member
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Rep: Reputation: Disabled
Old 09-12-2012, 05:18 AM   #3
Didier Spaier
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64- on Lenovo Thinkpad W520
Posts: 10,022

Rep: Reputation: Disabled
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 05:19 AM.
Old 09-12-2012, 05: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.


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

All times are GMT -5. The time now is 06:16 AM.

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