LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-21-2003, 02:02 PM   #1
hobylinux
Member
 
Registered: Jul 2003
Location: Ohio, USA
Distribution: Mandrake 9.2
Posts: 145

Rep: Reputation: 15
backup directory with root only permissions?


i would like to create a backup directory on my external hdd that only root can access. i tried doing this by running konqueror as root and also by logging in as root, but in both instances i was unable to restrict access to the directory to root only. any suggestions?

also, after i get this set up successfully, what is the easiest (and safest) way to write to this directory while remaining logged in as a user?

thanks a lot.
 
Old 08-21-2003, 06:38 PM   #2
gargamel237
Member
 
Registered: Aug 2003
Location: Los Angeles
Distribution: gentoo
Posts: 52

Rep: Reputation: 15
chmod -R 400 /name/of/directory should work if root is the owner of the dir. Drop the -R if you don't want to change the permissions on the lower files/directories.

sudo is going to be your friend as far as letting users write to the directory later.

What is the goal of this project? I have a feeling there are better ways to do what you're looking to do.

Last edited by gargamel237; 08-21-2003 at 06:41 PM.
 
Old 08-21-2003, 07:03 PM   #3
hobylinux
Member
 
Registered: Jul 2003
Location: Ohio, USA
Distribution: Mandrake 9.2
Posts: 145

Original Poster
Rep: Reputation: 15
goal...

basically my goal is to backup all of my files to something that can't get hurt on the off chance that i get a virus. i figured backing everything up somewhere i can't access (or at least have read-only access) as a normal user would do the trick. what other ways are there of doing this? i'd certainly be interested.

thanks a lot.
 
Old 08-22-2003, 12:25 AM   #4
gargamel237
Member
 
Registered: Aug 2003
Location: Los Angeles
Distribution: gentoo
Posts: 52

Rep: Reputation: 15
tar is meant for this kind of thing and can do bunches of cool stuff like only change updated files and stuff. Plus everything'll be compressed!

From a permissions standpoint, the problem with giving the user access to write to the file is that the user has access to write (and overwrite) to the file meaning that you've not solved the problem of being able to accidentally destroy your files.

What about maintianing ownership and permissions on your backup files and just unmounting the volume when you're not actively backing up?
 
  


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
user backup permissions wmorrow Linux - Security 3 10-26-2005 09:22 AM
Backup of directory sanjibgupta Linux - Networking 2 09-05-2005 12:32 AM
Backup Permissions cfgert Linux - General 5 08-23-2004 08:36 AM
write permissions for directory - not accidently move/deleted the directory linuxgamer Linux - Newbie 10 12-02-2003 03:04 AM
Backup, directory, permissions. linuxgamer Linux - Distributions 0 11-19-2003 06:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:50 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