Results 1 to 8 of 8

Thread: secondary drives

  1. #1
    Join Date
    Feb 2013
    Location
    Indiana
    Posts
    267

    Default secondary drives

    I have a small question.

    I have a second drive in my machine, I use for sorted files and images. When I want to use it I am required to give a root password. Is there any way to get away from having to use passwords?
    Mike

    AMD Athlon(tm) II X3 435 Processor, (RAM): 8.0 GiB, openSUSE Leap 42.2, (x86_64)
    KDE: 4.10, ATI Radeon HD Graphics

  2. #2
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,761

    Default Re: secondary drives

    mount it in /etc/fstab. Note you can edit the file or set it up in yast.

    Mount requires root but once mounted it can set for anyone’s use

  3. #3
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,383
    Blog Entries
    2

    Default Re: secondary drives

    I use second and removable drives all the time without requiring a root password.

    How is this physical drive physically connected, and how is it mounted... if not by fstab is it mounted by UDEV?
    And, do you have special non-default security enabled like SELINUX?
    How was this second drive's partitions and formatting created?
    What is the format?
    Is this machine part of Network security like LDAP or AD, or is this machine purely standalone?

    TSU

  4. #4
    Join Date
    Feb 2013
    Location
    Indiana
    Posts
    267

    Default Re: secondary drives

    Quote Originally Posted by gogalthorp View Post
    mount it in /etc/fstab. Note you can edit the file or set it up in yast.

    Mount requires root but once mounted it can set for anyone’s use
    Went in yast, found my etc, could not find fstab.
    Mike

    AMD Athlon(tm) II X3 435 Processor, (RAM): 8.0 GiB, openSUSE Leap 42.2, (x86_64)
    KDE: 4.10, ATI Radeon HD Graphics

  5. #5
    Join Date
    Feb 2013
    Location
    Indiana
    Posts
    267

    Default Re: secondary drives

    Quote Originally Posted by tsu2 View Post
    I use second and removable drives all the time without requiring a root password.

    How is this physical drive physically connected, and how is it mounted... if not by fstab is it mounted by UDEV?
    And, do you have special non-default security enabled like SELINUX?
    How was this second drive's partitions and formatting created?
    What is the format?
    Is this machine part of Network security like LDAP or AD, or is this machine purely standalone?

    TSU
    The drive is my secondary sata drive inside case. It has a NTFS format.
    Mike

    AMD Athlon(tm) II X3 435 Processor, (RAM): 8.0 GiB, openSUSE Leap 42.2, (x86_64)
    KDE: 4.10, ATI Radeon HD Graphics

  6. #6
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: secondary drives

    Quote Originally Posted by mike7757 View Post
    Went in yast, found my etc, could not find fstab.
    First, fstab is located here: /etc/fstab and must be edited as root. A bash tool I have can be used to edit it as root:

    SYSEdit - System File Editor - Version 1.50 - Blogs - openSUSE Forums

    You can use the YaST Partitioner to do this for you if you wish:

    Code:
    YaST (Root Password) / System / Partitioner
    You must give the drive somewhere (A Folder name) to be mounted and the Partitioner will create it for you if not there. Stay away from folders the system creates for you. The permissions for the folder you create and the mount options for the drive partition type do have an effect on using the drive without using a password.

    I would read up of the fstab file before I did anything else I think.

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  7. #7

    Default Re: secondary drives

    Not sure if this helps, not as fancy as editing Fstabs and stuff but.....try opening the mounted drive then File > Properties > Permissions > And change the Ownership to 'Root'.




    Uploaded with ImageShack.us


    Fixed the exact issue you are having for me.

  8. #8

    Default Re: secondary drives

    Adding the following line to the file /etc/polkit-default-privs.local and running "sudo /sbin/set_polkit_default_privs" should also allow it (and other system disks) to be used in KDE or GNOME _without_ root password:
    Code:
    org.freedesktop.udisks2.filesystem-mount-system yes

Posting Permissions

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