Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Newby, need help with permissions, take control of media partition, access file/folder as admin

  1. #1

    Default Newby, need help with permissions, take control of media partition, access file/folder as admin

    Newby, need help with permissions, take control of media partition, access file/folder as administrator.

    I installed OpenSUSE 11.2 and partition my 80 GB HDD as follows during install:

    / (root) for system - 16 GB
    /swap 4 GB
    /home - 20 GB
    /media/STORAGE - 34 GB for storing files musioc, photos, video, documents etc.

    Now I cannot access the /media/STORAGE. Need help taking ownership (control) of this partition so I can read/write to it (save, cut, copy, paste, move to and from, delete files and folders).

    Please help with step by step instructions and bear in mind that I am a newby, so you will need to explain everything in detail. Thanks.

  2. #2
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,743
    Blog Entries
    20

    Default Re: Newby, need help with permissions, take control of media partition, access file/folder as admin

    Please open a terminal and post result of

    cat /etc/fstab
    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

  3. #3

    Default Re: Newby, need help with permissions, take control of media partition, access file/folder as admin

    Quote Originally Posted by Doruletz View Post
    Newby, need help with permissions, take control of media partition, access file/folder as administrator.

    I installed OpenSUSE 11.2 and partition my 80 GB HDD as follows during install:

    / (root) for system - 16 GB
    /swap 4 GB
    /home - 20 GB
    /media/STORAGE - 34 GB for storing files musioc, photos, video, documents etc.

    Now I cannot access the /media/STORAGE. Need help taking ownership (control) of this partition so I can read/write to it (save, cut, copy, paste, move to and from, delete files and folders).

    Please help with step by step instructions and bear in mind that I am a newby, so you will need to explain everything in detail. Thanks.
    This is a new install right?
    I suggest reinstalling 11.3 (or 11.2 if you insist).
    Code:
    / (root) for system - 18 GB
    /swap 2 GB
    /home - 54 GB - 54 GB for storing files musioc, photos, video, documents etc.
    /media/ is a special folder used by the system for mounting removable storage.

    Then instead of installing /media/STORAGE,
    you create /home/STORAGE after 11.3 finishes the installation.
    Code:
    su -
    password: 
    mkdir /home/STORAGE  
    chown  userid:users  /home/STORAGE
    chmod  -R --reference=/home/userid/
    exit
    Box 1: OpenSuse 11.1/Win7 | Linux 2.6.27 Gnome | AMD 64 X2 6000+ | nVidia 8600GT | 2GB RAM
    Box 2: OpenSuse 11.2 | Linux 2.6.31 Gnome | AMD 64 3000+ | ATI X800 Pro | 1GB RAM
    Box 3: Win7 Premium Home | Intel P4 3.0Gz | ATI AIW 2006 | 2GB RAM

  4. #4
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,476
    Blog Entries
    14

    Default Re: Newby, need help with permissions, take control of media partition, access file/folder as admin

    I would not create /home/STORAGE, since /home is for the user folders, and 'STORAGE' is not a user. I'd rather create something like /data or, if your want, /STORAGE. This would mean you'd only have to change the mount point (which should definitely not be in /media) to /STORAGE. Then, after install, the next would be enough to make the partition accessible to all users:
    Code:
    chgrp users /STORAGE && chmod 775 /STORAGE
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  5. #5
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,729
    Blog Entries
    2

    Default Re: Newby, need help with permissions, take control of media partition, access file/folder as admin

    I endorse Knurpht's advice.
    You would run the command su first, to make your command have root authority. And if you already had files in the directory STORAGE, you would include the -R option/switch to change the files also, not just the container.

    On the other hand, if you are the only user (i.e. if you wanted your username to own everything) you could use this command to make that happen:
    Code:
    chown -R  yourname:users /media/STORAGE && chmod 755 -R  /media/STORAGE
    or
    Code:
    chown -R  yourname:users /STORAGE && chmod 755 -R  /STORAGE
    depending on your preference
    Leap 42.3 & 15.1 &KDE
    FYIs from the days of yore

  6. #6
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,729
    Blog Entries
    2

    Default Re: Newby, need help with permissions, take control of media partition, access file/folder as admin

    BTW, this might be worth reading: Notes on chown and chmod
    Leap 42.3 & 15.1 &KDE
    FYIs from the days of yore

  7. #7

    Default Re: Newby, need help with permissions, take control of media partition, access file/folder as admin

    Its up to the user to put /STORAGE (or /DATA) wherever he/she wants.
    OTOH, /media/STORAGE was intended for storing files music, photos, video, documents etc. which belong on a separate partition from / (root) or in /home.

    With 54Gb reallocated to /home there's plenty of room for users.

    Putting a /STORAGE on the / (root) would make it compete with /usr, /tmp and /var for space.

    It doesn't bother me if there's a /home/STORAGE/MUSIC, /home/STORAGE/PHOTOS, or what it actually is /home/userid/STORAGE

    Putting STORAGE under /home allocates 54Gb, simplifies OS version upgrades or changes vs. a /STORAGE on 18Gb / (root), frees the entire 18Gb / for /usr, /tmp, /var.
    Trust me 34Gb is not a lot of storage for music, photos and videos.

    Going by your standards, I would've recommended partitioning :
    / (root) for system - 18 GB
    /swap 2 GB
    /home - 20 GB
    /STORAGE (or /DATA) - 34 GB for storing files music, photos, video, documents etc.

    Also,
    Code:
    chmod -R userid:users /home/STORAGE  --reference=/home/userid
    recursively changes the permissions of folder /home/STORAGE to be the same as /home/userid. I use this to ensure ACL changes are inherited from the reference file or folder.
    Box 1: OpenSuse 11.1/Win7 | Linux 2.6.27 Gnome | AMD 64 X2 6000+ | nVidia 8600GT | 2GB RAM
    Box 2: OpenSuse 11.2 | Linux 2.6.31 Gnome | AMD 64 3000+ | ATI X800 Pro | 1GB RAM
    Box 3: Win7 Premium Home | Intel P4 3.0Gz | ATI AIW 2006 | 2GB RAM

  8. #8

    Default Re: Newby, need help with permissions, take control of media partition, access file/folder as admin

    Just ran a test and --reference=reference-file doesn't do anything special for ACL.
    But it still simplified setting folder permissions for me.
    Box 1: OpenSuse 11.1/Win7 | Linux 2.6.27 Gnome | AMD 64 X2 6000+ | nVidia 8600GT | 2GB RAM
    Box 2: OpenSuse 11.2 | Linux 2.6.31 Gnome | AMD 64 3000+ | ATI X800 Pro | 1GB RAM
    Box 3: Win7 Premium Home | Intel P4 3.0Gz | ATI AIW 2006 | 2GB RAM

  9. #9
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,743
    Blog Entries
    20

    Default Re: Newby, need help with permissions, take control of media partition, access file/folder as admin

    Even if the OP is still with us, I think this lot just went right over his head.
    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

  10. #10

    Default Re: Newby, need help with permissions, take control of media partition, access file/folder as admin

    Yeah sorry!!
    Box 1: OpenSuse 11.1/Win7 | Linux 2.6.27 Gnome | AMD 64 X2 6000+ | nVidia 8600GT | 2GB RAM
    Box 2: OpenSuse 11.2 | Linux 2.6.31 Gnome | AMD 64 3000+ | ATI X800 Pro | 1GB RAM
    Box 3: Win7 Premium Home | Intel P4 3.0Gz | ATI AIW 2006 | 2GB RAM

Page 1 of 2 12 LastLast

Posting Permissions

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