Find the answer to your Linux question:
Results 1 to 6 of 6
Hey guys, Does anybody know how to passwork protect a folder so even my own account (alex) can't access it without typing in the password...?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Nov 2004
    Posts
    166

    Password Protected Folder?


    Hey guys,

    Does anybody know how to passwork protect a folder so even my own account (alex) can't access it without typing in the password...?
    Registered Linux User Number 373366

  2. #2
    Linux Guru techieMoe's Avatar
    Join Date
    Aug 2004
    Location
    Texas
    Posts
    9,496
    Well, this isn't *exactly* the same thing but you can modify the Read/Write/Execute permissions so that no one other than a particular user or user group can read/write/execute a file or folder.

    I gave a mini-tutorial on setting permissions with chmod somewhere on the forum, but I have since lost track of the thread.
    Registered Linux user #270181
    TechieMoe's Tech Rants

  3. #3
    Linux Newbie
    Join Date
    Nov 2004
    Posts
    166
    thats close, but i still want to be able to read/write/execute, i just want it to only let me do that after i enter a password, or is thatnot possible?
    Registered Linux User Number 373366

  4. #4
    Linux Engineer
    Join Date
    Nov 2004
    Location
    Montreal, Canada
    Posts
    1,267
    I'm just gessing on this one

    I know that in windows u can attach a file to another using this syntax

    myNotes.txt

    u add this little file to it

    myNotes.txt:somescript.ext

    .ext is a generic (ext)ention

    and in the *.ext you can make some code run... that would ask for a user name password
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    This might be off topic, nut im pretty sure you could attach a file OR while getting access to a specific folder, make a little script that would ask for a user/pass....
    I'm really not convinced it would work properly, but its something you could try



    Another way would be to create a process that check file access on a specific folder, and prompt a user/pass to get access to it

    hope this helps

    Ugo
    \"Meditative mind\'s is like a vast ocean... whatever strikes the surface, the bottom stays calm\" - Dalai Lama
    \"Competition ultimatly comes down to one thing... a loser and a winner.\" - Ugo Deschamps

  5. #5
    Linux Newbie
    Join Date
    Nov 2004
    Posts
    166
    thats a good idea that i will try, but i don't know bash or any scripting language. Learning BASH is my project for over thanks giving break which starts tomorow..can't wait
    Registered Linux User Number 373366

  6. #6
    Linux Newbie
    Join Date
    Jul 2004
    Location
    WA, USA
    Posts
    102
    Create a new user and change the onwership of the folder to that user. That way, you will have to su 'owner' to be able to access the folder... don't know if that is what you want, but it is an idea :)
    Taking a walk on the wonderful path computers have lain before me

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •