Page 3 of 3 FirstFirst 123
Results 21 to 25 of 25

Thread: permit a general user to access all directories in ubuntu 12.04

  1. #21
    Join Date
    Aug 2011
    Location
    52° N 6° E
    Beans
    2,867
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: permit a general user to access all directories in ubuntu 12.04

    First you have to mount all "drives" (typically partitions xisting on a drive, but windows confusingly calls them drives). You can do so automatically at boot using /etc/fstab: https://help.ubuntu.com/community/Fstab
    They will all be mounted on a mount point. You have to make the mount point owned by the group and set the permissions as indicated a few posts back.

    The root partition has a somewhat special mount point to which you can better not give everyone full access, as they will be able to modify software (and destroy your system). If you want to give users access to that partition you can make a directory somewhere in the file system on that partition and set the owner and permissions on that directory.

    Oh, and there's no need to name the group after a misspelling of my user name. It's an honour too great for me.

  2. #22
    Join Date
    Jul 2012
    Location
    Dhaka
    Beans
    264
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: permit a general user to access all directories in ubuntu 12.04

    Here is the O/P of your commands.
    Code:
    lsblk -o name,fstype,mountpoint,owner,group,mode,ro,rm,rota,size,state
    
    NAME    FSTYPE MOUNTPOINT        OWNER GROUP  MODE       RO RM ROTA   SIZE STATE
    sr0                              root  cdrom  brw-rw----  0  1    1  1024M running
    sda                              root  disk   brw-rw----  0  0    1 149.1G running
    ├─sda1                           root  disk   brw-rw----  0  0    1  23.3G 
    ├─sda2                           root  disk   brw-rw----  0  0    1     1K 
    ├─sda5         /media/ALL NEEDS_ root  disk   brw-rw----  0  0    1  18.6G 
    ├─sda6         /media/OTHERS     root  disk   brw-rw----  0  0    1    28G 
    ├─sda7         /media/DFDD-A2C5  root  disk   brw-rw----  0  0    1    28G 
    ├─sda8         /media/TUTORIALS  root  disk   brw-rw----  0  0    1  31.7G 
    ├─sda9         [SWAP]            root  disk   brw-rw----  0  0    1   1.9G 
    └─sda10        /                 root  disk   brw-rw----  0  0    1  17.7G 
    zram0          [SWAP]            root  disk   brw-rw----  0  0    0 989.6M 
    fd0                              root  floppy brw-rw----  0  1    1     4K
     
    =========================================================================================
    
    groups test
    
    test dip plugdev fuse lpadmin netdev impavidius
    Hope this can make understand the condition.

  3. #23
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: permit a general user to access all directories in ubuntu 12.04

    Sorry, I didn't realized you should sudo to see filesystem type and UUID. Could you please repeat:
    Code:
    sudo blkid -c /dev/null
    Also, please post the output of the commands
    Code:
    mount
    findmnt -s
    Last edited by schragge; March 7th, 2013 at 12:45 PM.

  4. #24
    Join Date
    Jul 2012
    Location
    Dhaka
    Beans
    264
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: permit a general user to access all directories in ubuntu 12.04

    @schragge, Here is the output.

    Code:
    sudo blkid -c /dev/null
    
    /dev/sda1: UUID="52B415BBB415A311" TYPE="ntfs" 
    /dev/sda5: LABEL="ALL NEEDS" UUID="A7B3-0C93" TYPE="vfat" 
    /dev/sda6: LABEL="OTHERS" UUID="64E9-0539" TYPE="vfat" 
    /dev/sda7: UUID="DFDD-A2C5" TYPE="vfat" 
    /dev/sda8: LABEL="TUTORIALS" UUID="B85E-1929" TYPE="vfat" 
    /dev/sda9: UUID="1c986bc2-7382-4df9-bf9a-b71c62a8421e" TYPE="swap" 
    /dev/sda10: UUID="a7dcadb6-3391-4bcc-a317-5fea6c7e4ae7" TYPE="ext4" 
    /dev/zram0: UUID="70a896bb-b40b-4fe8-a992-bcccc33fb247" TYPE="swap"
    Code:
    mount
    
    /dev/sda10 on / type ext4 (rw,errors=remount-ro)
    proc on /proc type proc (rw,noexec,nosuid,nodev)
    sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
    none on /sys/fs/fuse/connections type fusectl (rw)
    none on /sys/kernel/debug type debugfs (rw)
    none on /sys/kernel/security type securityfs (rw)
    udev on /dev type devtmpfs (rw,mode=0755)
    devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
    tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
    none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
    none on /run/shm type tmpfs (rw,nosuid,nodev)
    binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
    gvfs-fuse-daemon on /home/fahim/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=fahim)
    /dev/sda8 on /media/TUTORIALS type vfat (rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks)
    /dev/sda7 on /media/DFDD-A2C5 type vfat (rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks)
    /dev/sda6 on /media/OTHERS type vfat (rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks)
    /dev/sda5 on /media/ALL NEEDS_ type vfat (rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks)
    Code:
    findmnt -s
    
    TARGET         SOURCE                                    FSTYPE OPTIONS
    /proc          proc                                      proc   nodev,noexec,nosuid
    /              UUID=a7dcadb6-3391-4bcc-a317-5fea6c7e4ae7 ext4   errors=remount-ro
    none           UUID=1c986bc2-7382-4df9-bf9a-b71c62a8421e swap   sw
    /media/floppy0 /dev/fd0                                  auto   rw,user,noauto,exec,utf8

  5. #25
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: permit a general user to access all directories in ubuntu 12.04

    Currently, the four FAT drives (TUTORIALS, DFDD-A2C5, OTHERS, ALL NEEDS_) are mounted by user fahim from the file manager by clicking on their labels/icons. Therefore, they are exclusively owned by this user and other users cannot access them. If you reboot, log in as user test, and mount them again by clicking on them, then they will be exclusively owned by test and not accessible to fahim. First come, first served. Till the next reboot. If this suites you, fine. If not, read further.

    I suppose these drives are not removable thus I suggest that you permanently mount them on boot. See community/MountingWindowsPartitions.
    Last edited by schragge; March 8th, 2013 at 03:55 PM.

Page 3 of 3 FirstFirst 123

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
  •