Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    common directory for multiple users

    If I need to give access to multiple users to a common directory, what would be the best location. I would think that this needs to be outside /home. I can create a directory under the root directory / or create something under /var or /opt.

    Any advice?




  2. #2
    Join Date
    Jul 2012
    Posts
    60
    Thanks
    0
    Thanked 10 Times in 9 Posts
    Rep Power
    1
    My family uses /tmp, mainly because we're lazy, and /tmp flushes out old files every so often.

    If you want a more permanent solution, I'd create a folder under /
    There's a problem in sharing files across users, though, read and write permissions may get in the way.
    For example, Joe drags a folder into the dmz directory, but Billy can't write to that folder, and it's contents. Joe's folder (or contents) doesn't have o+w*. This can be solved if Joe or root manually (with recursion or not) gives o+w* to Joe's folder.

    There are a couple of ways to surpass this:
    One way, which I find really, really dirty to do, is to create a separate partition with a filesystem that doesn't support Unix filesystem permissions. That way, everyone can read, everyone can write, but no one can execute without moving the file onto a filesystem that can.

    The other, to create a cron job that recursively gives g+rw* permissions to a special group pertaining to that dmz directory

    Now, what I'd do, is to teach your family (or whoever is using that computer) the basics of permission handling across owners, groups and other users. That, on top of a daily cron job of recursively changing all things' permissions under the dmz directory with at least g+r*. (However, the former is the most important.)

    *The letters in ugoa-=+rwxXst is defined in the man page of chmod.

    (It rubbed me the wrong way just a wee bit, but putting the folder in /var or /opt makes no sense whatsoever. If anything, the dmz directory should be placed under /usr (But plain ol' / makes everything easier.))

  3. #3
    Join Date
    Apr 2012
    Posts
    65
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Rep Power
    2

    new directory

    You can create a new common user. That create a new directory under /home. Be aware with the permisson. If you have time you can have 2 ways. Install a ftp server with jails (to protect your info.and master conf ) and can assign user and passwd to each client. Or install samba and work with it. Hope helps

  4. #4
    Join Date
    Feb 2012
    Location
    UTC -8 'tween the mtns, N of the Columbia R
    Posts
    202
    Thanks
    4
    Thanked 16 Times in 15 Posts
    Rep Power
    2
    OP did not define "multiple users" well enough, but Kerms suggestion of vfat/FAT32 file system is good (I would go with a separate partition that users of the dominant OS could mount as a directory under D:\, perhaps).

    Please elaborate if we have not helped.

    Gone.

 

 

Similar Threads

  1. How to remove a directory recursively?
    By carbon333 in forum Command Line
    Replies: 4
    Last Post: 08-05-2012, 09:22 PM
  2. Home Directory permission
    By invincible123 in forum General Linux
    Replies: 3
    Last Post: 07-10-2012, 11:41 AM
  3. Replies: 0
    Last Post: 02-15-2012, 07:26 AM
  4. The Most Common OpenSSL Commands
    By Fred in forum Linux News
    Replies: 0
    Last Post: 12-18-2011, 02:40 AM
  5. Understanding Linux Directory Structure
    By Fred in forum Linux News
    Replies: 0
    Last Post: 11-28-2011, 09:02 AM

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
  •  
           








Check out Linux Central for Linux software and other goodies!





» Stats

Members: 3,534
Threads: 3,911
Posts: 9,419
Top Poster: Fred (1,486)
Welcome to our newest member, IvanWalker

» Links



Powered by vBadvanced CMPS