Password on files

I know there are permissions one can assign to certain files and folders, but this won’t come in handy if you need quick access to a file -and as User I often do- and don’t want to slow down getting root permissions. You know, just open-close-move on.
Is there a way, as user, to assign a password to a file or a folder? It would make the job a lot easier and more efficient.

Not sure why. You can simply ban anyone else from reading particular files or folders - the time taken to read the permissions is the same regardless of the setting. Adding a password would slow down access - in any case, if you ban anyone else from reading your files, then by default they are all covered by your user password.

Yeah, I know, but I actually need to share my own session with other users, so it would be useful.
Thanks anyway!

If you can’t password protect it, I guess changing the permissions to be accessible only to you is the next best thing.

Are passwords stored on the system level, or is it up to the application?

Why don’t you encrypt them? gpg is good for this.

Can Truecrypt handle individual files, or just directories?

I don’t know, but that might be another way to go, a TC virtual partition. It isn’t in the repos though.

Reading the OP again, I’m not exactly sure what these files are that lorenzobrion has in mind. Are they personal files, or system files? Is there a particular reason you have to share your session?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

If you use a file format that supports passwords this should be trivial.
For example, use OpenOffice documents and you can password-protect any of
them. When you open them OO.o will prompt you for a password as it is
opened; voila, you’re done.

Good luck.

On 09/02/2010 12:36 PM, lorenzobrion wrote:
>
> I know there are permissions one can assign to certain files and
> folders, but this won’t come in handy if you need quick access to a file
> -and as User I often do- and don’t want to slow down getting root
> permissions. You know, just open-close-move on.
> Is there a way, as user, to assign a password to a file or a folder? It
> would make the job a lot easier and more efficient.
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJMgU3dAAoJEF+XTK08PnB5sEQP/3jvWs2fT559qb9RU/QTl6nr
XDf87INlD/iXgtddYbyOqD9Cd4I5EzVZURSe7npUae2SbXVRMdbFpWFEMMn0IqsT
6C7yFQokBGZY8bCZCop3T0FsLuvK//ePg8H7TES5nyYe11zyu2uw6iE5bF6zths8
uHogTIoyBknE6flGAHX2UC9SgaJ2R60q40zYvkmmnPOmGNb/CHqOsgljC0Gnezbm
Qc80fFp4AqNBQ8JBXeW5ZIoBAMraYNxyLJxjDQtlclEiztl85ik8N3PDSYQSrcii
55s+5z16AzQOEF3wkUyDTojYklXlkCurv6cFH3nNMOeBBREcq4jfTK+yeq8MBO+c
GzKvEdJuoJnOaJgHS6Pi5ZNk3ARZ1t0sLHrzFchktkCd2Z2nla7loicl1TE1KoLQ
Syds6cNP3ms7meHWhJFFb3zxSngJI85aM+P9KJqeKJ3ooJiE2VbtTfat6idtKLnx
gSeSmlqxim92UqaFCrcFM2NbE94XKc5kUoivGUZM4SBiP1OItj8rzkZdJi6fPNO7
XleiSIMt4f1ME8PCSD5+uY1xxP4r3XActBHpiX/D0ReC1AxlpsOYjQFsKw1MN53N
182GwIOi5SQhb7ElK1csdev7JalZAEs3tHHwghWPTuvq3x0HTIg8uHE5gL+ICVpv
ukV3fBOWBtTPENTAGDjh
=bMfq
-----END PGP SIGNATURE-----

On 2010-09-02 20:36, lorenzobrion wrote:

> Is there a way, as user, to assign a password to a file or a folder? It
> would make the job a lot easier and more efficient.

None, except encryption.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” GM (Elessar))

Make a group that only has those users that you want to have access and make the file ownership to that group giving the group rwx or any combo of access you want.

when I needed this I made a trick and it was quite ok for me, assign the files to a user with permission only to that user, for example usersecret, than there was a kde application that allow to open the file or the folder as root or another user, so if you are logged as youuser, so right click>open as other user, insert user name usersecret (but if I remember well it was automatically inserted) insert password, click ok and the file or the folder is opened.
Hoping it will be useful :slight_smile: