Results 1 to 7 of 7

Thread: [SOLVED] file sharing between user accounts

  1. #1
    Join Date
    Nov 2008
    Beans
    164

    [SOLVED] file sharing between user accounts

    I have two seperate user accounts on my 8.10 install, one for me and one for my wife. I would like her to be able to play the music files in my /home/Music folder. How can I set her up with that access?

  2. #2
    Join Date
    Dec 2006
    Location
    Hamburg, Germany
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: file sharing between user accounts

    From your account, run
    Code:
    sudo chmod -R 776 /home/USER/Music/
    where USER needs to be replaced by your username.

    Subsequently log into your wife's account and add a launcher to the desktop or the panel to launch
    Code:
    nautilus /home/USER/Music/
    where USER still is your username (not your wife's).
    Last edited by northern lights; January 7th, 2009 at 05:08 PM.
    One ought, every day at least, to hear a little song, read a good poem, see a fine picture, and, if it were possible, speak a few reasonable words...

  3. #3
    Join Date
    Apr 2005
    Location
    Finland/UK
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: file sharing between user accounts

    After setting the read permissions for the directory you could also create a link from it into your wife's home:

    ln -s /home/yourusername/Music /home/yourwife/Music

    This way she doesn't need to browse into your home to access the music files..

    (also it should be mentioned that she'll need permissions to both read and _execute_ the directory. Read permissions only allows accessing files if you know their exact names/paths, but execution permission is needed to actually list the files inside the directory.. So the octal mode 776 wouldn't work, it has to be 775 or 777.)

  4. #4
    Join Date
    May 2008
    Location
    New Delhi, India
    Beans
    364
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: file sharing between user accounts

    Another method:

    Share your Music folder. U may give guest access if security is not an issue.

    In ur wife's login create a launcher
    Code:
    nautilus smb://localhost
    Right click on the Music folder and open with your favorite music player.

  5. #5
    Join Date
    Apr 2006
    Location
    Ubuntuland
    Beans
    2,124
    Distro
    Ubuntu 13.10 Saucy Salamander

    Lightbulb Re: file sharing between user accounts

    Personally, I'd:

    1) create a folder like /home/shared/Music and put the stuff there.
    2) create a "shared" group
    3) Make /home/shared belong to the "shared" group
    4) Add you and your wife to the "shared" group

    It's a lot cleaner approach
    24 beers in a case, 24 hours in a day. Coincidence? I think not!

    Trusty Tahr 64 bit, AMD Phenom II 955 Quad Core 3.2GHz, GeForce 9600 GT
    16G PC2-6400 RAM, 128 GB SSD, Twin 1TB SATA 7200 RPM RAID0

  6. #6
    Join Date
    Feb 2006
    Location
    Québec, Canada
    Beans
    Hidden!
    Distro
    Gutsy Gibbon Testing

    Re: file sharing between user accounts

    I'm having a similar problem, but a bit more complex. Here it is:

    I'm having a partition containing all my multimedia stuff (pictures, music, videos and podcasts).

    Right now, that partition is mounted as "/home/shared", and all my folders are owned by root:users with suid and sgid bits enabled, so then if my wife or me add a file to those folders, then the files will be automatically owned by root:users, so that's all good. Only my wife and I are member of the users group so we can both read files there.

    The thing is we are both sharing the same f-spot library as I want to be able to tag pictures and update her library by the same time, and vice-versa. What I'm looking for, is a way to set the umask on a per-directory level so files created (or imported for a photo camera, say) into thoses directory not only set user to root:users but also set permission to 0660.

    I would also like to do that with sensitive data (budjet) so security is an issue here.

    I've considered using ecryptfs but I can't since we might be both connected at the same time. I've been looking for the bash/mount/chown/chmod manpages and haven't found anything. Does anyone has a clue?

    Thanks!

    -FM

  7. #7
    Join Date
    Nov 2008
    Beans
    164

    Re: file sharing between user accounts

    Got it set up. Thanks to all.

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
  •