LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 02-14-2006, 08:59 PM   #1
Adriann
Member
 
Registered: Sep 2003
Location: St. Paul Mn
Distribution: OpenSuse 13.1 AND Win 10
Posts: 76

Rep: Reputation: 18
Setting Folder permissions


I have several (4) financial files that I wish to protect. I would
like to give them root access only read, write etc. If possible I
would like to password protect them. I've read about chmod/chown and
now I'm even more confused.

Help!

Adriann
 
Old 02-14-2006, 09:41 PM   #2
accessrichard
Member
 
Registered: Apr 2005
Distribution: Fedora Core (latest version)
Posts: 156

Rep: Reputation: 30
2 ways that I do it

Create a users and a password and move those files to that dummy user, su user to get them back - probably wont work for you though

Use GnuPG - man GnuPG then man gpg. I can't remember how exactly it is done but it is something like so...
Code:
gpg --gen-key          #answer a bunch of questions
gpg -r (uid-from prev command) -e (file-to-encrypt)
gpg -r (uid) -d (encrypted-file-name.gpg) > encrypted-file-name
Make sure to test this out before you try on an actual file.

Last edited by accessrichard; 02-14-2006 at 09:42 PM.
 
Old 02-15-2006, 02:53 AM   #3
sklitzz
Member
 
Registered: Feb 2006
Location: Croatia, Split
Distribution: Ubuntu 7.10
Posts: 93

Rep: Reputation: 15
You can make a new user(as accessrichard mentioned) or give the files to root.

Do the following:
$chown root:root file
$chmod 400 file

chown - this will give ownership to root, you can give to anyone else like this dummy_user:users(where dummy_user i username and users i a usergroup)

chmod - will setup the permission so the file can be read by the root and no one else. Use the man pages to learn more about this.
 
  


Reply



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
newbie needs help setting folder permissions for new users J1015512 Ubuntu 1 10-15-2005 01:57 AM
permissions difference between /home/..../folder and /root/folder darkleaf Linux - General 3 07-21-2005 05:23 PM
Folder permissions Canam97 Mandriva 7 03-10-2005 11:01 PM
Folder Permissions DB03 Linux - Newbie 5 04-18-2004 03:08 PM
Folder permissions fatboyjim Linux - Newbie 12 06-05-2002 02:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 02:28 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
Open Source Consulting | Domain Registration