Results 1 to 4 of 4

Thread: How do I allow other users to view my home dir?

  1. #1
    Join Date
    Apr 2006
    Beans
    479
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Question How do I allow other users to view my home dir?

    This is a two-bird-with-one-stone kinda question! First off, my wife and I share a single desktop PC and I want us to be able to at least view each other's 'home' directory. My basic technique has been to add each of us to the other's Group.

    Secondly, I'm trying to make a complete backup of each of our's 'home', i.e., with the other person logged-out so that no files are locked or in-use. But belonging to the other person's Group isn't sufficient. Sometime the Group doesn't have any access-rights. So then I tried adding Group-read rights to all our files/folders and that helped a lot, e.g.
    > sudo chmod g+r -R /home/<wife>

    But now what I'm running into is that -- even though her FOLDERS permissions are 'List files' -- it doesn't work; from my login I can't see what files are in her folders. I also discovered that there's another Group permission called 'Access files' -- is that what I need? If so I don't see any way to specify that from the command-line?

    Hopefully I've been clear, both about my ultimate goals (shared access/backups) and the steps I've taken so far!

  2. #2
    Join Date
    Mar 2008
    Location
    Las Vegas
    Beans
    1,148

    Re: How do I allow other users to view my home dir?

    Regarding the backup are you desiring to do this via a crontab file entry? You could use rsync as root like this and it should do it:
    Code:
    rsynv -av /home/<wife> /backup-device/<wife>/     # as long as <wife> exists on /backup-device then root won't create it.
    Alternatively you could use tar:
    Code:
    tar -cvpzf /backup-device/<wife>/filename /home/wife
    I suffix my backup file names with the date like this:
    Code:
    dateNtime=$(date +%m%d%y)
    blah blah blah home-$dateNtime
    blah blah blah etc-$dateNtime
    My machine is single user so can't help with the home dir. sharing.
    Debian Stable
    FluxBox
    Mark Your Thread Solved

  3. #3
    Join Date
    Apr 2006
    Beans
    479
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: How do I allow other users to view my home dir?

    Thanks for the quick reply! Actually, I'm not trying to do any of that :-p

    In your example, though, you show a command-line:
    Code:
    tar -cvpzf /backup-device/<wife>/filename /home/wife
    Does that command work on your own 'home' directory, i.e., if you're logged-in and running the Gnome desktop?

  4. #4
    Join Date
    Mar 2008
    Location
    Las Vegas
    Beans
    1,148

    Re: How do I allow other users to view my home dir?

    Quote Originally Posted by bsmith1051 View Post
    Thanks for the quick reply! Actually, I'm not trying to do any of that :-p

    In your example, though, you show a command-line:
    Code:
    tar -cvpzf /backup-device/<wife>/filename /home/wife
    Does that command work on your own 'home' directory, i.e., if you're logged-in and running the Gnome desktop?
    Yes,
    Code:
    tar -<switches> <file.tgz that tar will create> <dir/file(s) to put in file.tgz>
    What I do is use rsync to backup /etc and /home and then use tar to put those 2 dirs as a compressed file each on a USB thumb drive.

    Note that if your backup media is part of your home dir you'll have a recursion loop going on and unexpected things could/might/probably will happen!
    Debian Stable
    FluxBox
    Mark Your Thread Solved

Tags for this Thread

Bookmarks

Posting Permissions

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