Is it possible to put a password on individual files?

Asked by cease on 2007-08-11

This is my first open source computer, and I am very new and stupid. Is it possible to put a password on individual files within your system with Ubuntu?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
cease
Solved:
2007-08-12
Last query:
2007-08-12
Last reply:
2007-08-12
Jigho (jigho) said : #1

In Linux World, each user usually have its own account. And files can be protected so that other accounts cannot read, write or execute your own files or directory. Is it your need ?
Or do you mean that several users use the same account, and you want one particular user to lock some files from others ?

cease (sage-charcoal) said : #2

I mean several users on the same account, is it possible to put a password on a single folder or file?

Jim Hutchinson (jphutch) said : #3

It really would be better to set up a separate account for each user. It's just good practice and it's good to get used to. My kids (age 7 and 11) have accounts and know how to log in and and such. If you really need to to do file protection of files you will probably have to look into encrypting them. That is the only way I can think of to do what you want. Check out

http://sourceforge.net/projects/bcrypt/

That may be installed already or easily added via the repos (sorry can't check I'm not on my Ubuntu box atm). Should be able to find out with a quick search. There are other encryption tools too. Any that can encrypt a single file should work for your needs.

cease (sage-charcoal) said : #4

Well, the computer is mine, and mine alone, it is just the general idea of multiple users on an account. More like I don't want to have to worry every time i leave the room logged in... thank you for your suggestion.

Ruben Romero (huayra) said : #5

use the archive manager and an encryption client... That should do the trick
:)

I mean make a (let's say) zip file and put a password on it. Then encrypt it
and put another password...

Pretty lame, but it should make your files unnacesible for others.

G'Luck!

R

On 8/12/07, cease <email address hidden> wrote:
>
> Question #11316 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/11316
>
> Status: Answered => Open
>
> cease is still having a problem:
> Well, the computer is mine, and mine alone, it is just the general idea
> of multiple users on an account. More like I don't want to have to worry
> every time i leave the room logged in... thank you for your suggestion.
>
> --
> You received this question notification because you are an answer
> contact for Ubuntu.
>

cease (sage-charcoal) said : #6

Alright, thank you, everyone. Looks like encrypting it is the only way... Thanks again.