Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23

Thread: 2nd HDD Permissions

  1. #11
    Join Date
    Jul 2017
    Beans
    38

    Re: 2nd HDD Permissions

    Quote Originally Posted by TheFu View Post
    Can you please try to run the commands I've shown, modified for your specific system, with the top directory changed to what makes sense on your computer, we could get the solution you seek. Basically, that means to use /HDD2 in the commands where I've used /stuff. If you don't understand and google doesn't answer sufficiently, please as a specific question that can be answered. Can't tell if you aren't answering because you don't want to or for some other reason. Please help us to help you.
    Yes I did that but unfortunately did not get any meaningful results:

    Code:
    gw@GW:~$ /dev/mapper/ubuntu--mate--vg-HDD2  /HDD2  ext4 noatime,errors=remount-ro,noatime 0 2
    bash: /dev/mapper/ubuntu--mate--vg-HDD2: No such file or directory
    gw@GW:~$
    Code:
    gw@GW:~$ /HDD2$ ls -al
    bash: /HDD2$: No such file or directory
    gw@GW:~$
    Code:
    gw@GW:~$ /HDD2/extra_HDD2$ ls -al
    bash: /HDD2/extra_HDD2$: No such file or directory
    gw@GW:~$
    Maybe I did it wrong?

  2. #12
    Join Date
    Jul 2017
    Beans
    38

    Re: 2nd HDD Permissions

    Not sure if this helps at all:

    Code:
    gw@GW:~$ ps aux | grep rslsync
    rslsync   2046  0.4  0.6 1066364 25064 ?       Ssl  Aug11   3:44 /usr/bin/rslsync --config /etc/resilio-sync/config.json
    gw@GW:~$
    Code:
    gw@GW:~$ sudo systemctl cat resilio-sync.service
    [sudo] password for gw: 
    # /lib/systemd/system/resilio-sync.service
    [Unit]
    Description=Resilio Sync service
    Documentation=https://help.resilio.com
    After=network.target network-online.target
    
    [Service]
    Type=forking
    UMask=0002
    Restart=on-failure
    PermissionsStartOnly=true
    
    User=rslsync
    Group=rslsync
    Environment="SYNC_USER=rslsync"
    Environment="SYNC_GROUP=rslsync"
    
    Environment="SYNC_RUN_DIR=/var/run/resilio-sync"
    Environment="SYNC_LIB_DIR=/var/lib/resilio-sync"
    Environment="SYNC_CONF_DIR=/etc/resilio-sync"
    
    PIDFile=/var/run/resilio-sync/sync.pid
    
    lines 1-23...skipping...
    # /lib/systemd/system/resilio-sync.service
    [Unit]
    Description=Resilio Sync service
    Documentation=https://help.resilio.com
    After=network.target network-online.target
    
    [Service]
    Type=forking
    UMask=0002
    Restart=on-failure
    PermissionsStartOnly=true
    
    User=rslsync
    Group=rslsync
    Environment="SYNC_USER=rslsync"
    Environment="SYNC_GROUP=rslsync"
    
    Environment="SYNC_RUN_DIR=/var/run/resilio-sync"
    Environment="SYNC_LIB_DIR=/var/lib/resilio-sync"
    Environment="SYNC_CONF_DIR=/etc/resilio-sync"
    
    PIDFile=/var/run/resilio-sync/sync.pid
    
    ExecStartPre=/bin/mkdir -p ${SYNC_RUN_DIR} ${SYNC_LIB_DIR}
    lines 1-24...skipping...
    # /lib/systemd/system/resilio-sync.service
    [Unit]
    Description=Resilio Sync service
    Documentation=https://help.resilio.com
    After=network.target network-online.target
    
    [Service]
    Type=forking
    UMask=0002
    Restart=on-failure
    PermissionsStartOnly=true
    
    User=rslsync
    Group=rslsync
    Environment="SYNC_USER=rslsync"
    Environment="SYNC_GROUP=rslsync"
    
    Environment="SYNC_RUN_DIR=/var/run/resilio-sync"
    Environment="SYNC_LIB_DIR=/var/lib/resilio-sync"
    Environment="SYNC_CONF_DIR=/etc/resilio-sync"
    
    PIDFile=/var/run/resilio-sync/sync.pid
    
    ExecStartPre=/bin/mkdir -p ${SYNC_RUN_DIR} ${SYNC_LIB_DIR}
    ExecStartPre=/bin/chown -R ${SYNC_USER}:${SYNC_GROUP} ${SYNC_RUN_DIR} ${SYNC_LIB_DIR}
    lines 1-25...skipping...
    # /lib/systemd/system/resilio-sync.service
    [Unit]
    Description=Resilio Sync service
    Documentation=https://help.resilio.com
    After=network.target network-online.target
    
    [Service]
    Type=forking
    UMask=0002
    Restart=on-failure
    PermissionsStartOnly=true
    
    User=rslsync
    Group=rslsync
    Environment="SYNC_USER=rslsync"
    Environment="SYNC_GROUP=rslsync"
    
    Environment="SYNC_RUN_DIR=/var/run/resilio-sync"
    Environment="SYNC_LIB_DIR=/var/lib/resilio-sync"
    Environment="SYNC_CONF_DIR=/etc/resilio-sync"
    
    PIDFile=/var/run/resilio-sync/sync.pid
    
    ExecStartPre=/bin/mkdir -p ${SYNC_RUN_DIR} ${SYNC_LIB_DIR}
    ExecStartPre=/bin/chown -R ${SYNC_USER}:${SYNC_GROUP} ${SYNC_RUN_DIR} ${SYNC_LIB_DIR}
    ExecStart=/usr/bin/rslsync --config ${SYNC_CONF_DIR}/config.json
    lines 1-26...skipping...
    # /lib/systemd/system/resilio-sync.service
    [Unit]
    Description=Resilio Sync service
    Documentation=https://help.resilio.com
    After=network.target network-online.target
    
    [Service]
    Type=forking
    UMask=0002
    Restart=on-failure
    PermissionsStartOnly=true
    
    User=rslsync
    Group=rslsync
    Environment="SYNC_USER=rslsync"
    Environment="SYNC_GROUP=rslsync"
    
    Environment="SYNC_RUN_DIR=/var/run/resilio-sync"
    Environment="SYNC_LIB_DIR=/var/lib/resilio-sync"
    Environment="SYNC_CONF_DIR=/etc/resilio-sync"
    
    PIDFile=/var/run/resilio-sync/sync.pid
    
    ExecStartPre=/bin/mkdir -p ${SYNC_RUN_DIR} ${SYNC_LIB_DIR}
    ExecStartPre=/bin/chown -R ${SYNC_USER}:${SYNC_GROUP} ${SYNC_RUN_DIR} ${SYNC_LIB_DIR}
    ExecStart=/usr/bin/rslsync --config ${SYNC_CONF_DIR}/config.json
    ExecStartPost=/bin/sleep 1
    lines 1-27...skipping...
    # /lib/systemd/system/resilio-sync.service
    [Unit]
    Description=Resilio Sync service
    Documentation=https://help.resilio.com
    After=network.target network-online.target
    
    [Service]
    Type=forking
    UMask=0002
    Restart=on-failure
    PermissionsStartOnly=true
    
    User=rslsync
    Group=rslsync
    Environment="SYNC_USER=rslsync"
    Environment="SYNC_GROUP=rslsync"
    
    Environment="SYNC_RUN_DIR=/var/run/resilio-sync"
    Environment="SYNC_LIB_DIR=/var/lib/resilio-sync"
    Environment="SYNC_CONF_DIR=/etc/resilio-sync"
    
    PIDFile=/var/run/resilio-sync/sync.pid
    
    ExecStartPre=/bin/mkdir -p ${SYNC_RUN_DIR} ${SYNC_LIB_DIR}
    ExecStartPre=/bin/chown -R ${SYNC_USER}:${SYNC_GROUP} ${SYNC_RUN_DIR} ${SYNC_LIB_DIR}
    ExecStart=/usr/bin/rslsync --config ${SYNC_CONF_DIR}/config.json
    ExecStartPost=/bin/sleep 1
    
    [Install]
    lines 1-29...skipping...
    # /lib/systemd/system/resilio-sync.service
    [Unit]
    Description=Resilio Sync service
    Documentation=https://help.resilio.com
    After=network.target network-online.target
    
    [Service]
    Type=forking
    UMask=0002
    Restart=on-failure
    PermissionsStartOnly=true
    
    User=rslsync
    Group=rslsync
    Environment="SYNC_USER=rslsync"
    Environment="SYNC_GROUP=rslsync"
    
    Environment="SYNC_RUN_DIR=/var/run/resilio-sync"
    Environment="SYNC_LIB_DIR=/var/lib/resilio-sync"
    Environment="SYNC_CONF_DIR=/etc/resilio-sync"
    
    PIDFile=/var/run/resilio-sync/sync.pid
    
    ExecStartPre=/bin/mkdir -p ${SYNC_RUN_DIR} ${SYNC_LIB_DIR}
    ExecStartPre=/bin/chown -R ${SYNC_USER}:${SYNC_GROUP} ${SYNC_RUN_DIR} ${SYNC_LIB_DIR}
    ExecStart=/usr/bin/rslsync --config ${SYNC_CONF_DIR}/config.json
    ExecStartPost=/bin/sleep 1
    
    [Install]
    WantedBy=multi-user.target
    ~
    ~
    gw@GW:~$
    Last edited by brenneke; 6 Days Ago at 07:08 PM.

  3. #13
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: 2nd HDD Permissions

    First comand was this, assuming you have mounted it at /HDD2 which now seems incorrect:
    $ cd /stuff/
    Where in your case /stuff/ is really /HDD2/
    or
    cd /hdd2/

    But it looks like you do not have it mounted anyway. the line above was from fstab to show the mount, so we know you have it mounted or where you have it mounted. And if not even mounted that is first issue.
    Post this:
    cat /etc/fstab

    Please review these:
    Understanding fstab
    http://www.psychocats.net/ubuntu/mountlinux
    https://help.ubuntu.com/community/Fstab
    Many are older and ext4 is now used, not ext3 for example
    https://help.ubuntu.com/community/Fstab#Examples
    https://wiki.archlinux.org/index.php/Fstab
    Last edited by oldfred; 6 Days Ago at 08:49 PM.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  4. #14
    Join Date
    Jul 2017
    Beans
    38

    Re: 2nd HDD Permissions

    Quote Originally Posted by oldfred View Post
    First comand was this, assuming you have mounted it at /HDD2 which now seems incorrect:
    $ cd /stuff/
    Where in your case /stuff/ is really /HDD2/
    or
    cd /hdd2/

    Post this:
    cat /etc/fstab
    Code:
    gw@GW:~$ cd /hdd2/
    bash: cd: /hdd2/: No such file or directory
    gw@GW:~$

    Code:
    gw@GW:~$ cat /etc/fstab
    # /etc/fstab: static file system information.
    #
    # Use 'blkid' to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    # / was on /dev/sda1 during installation
    UUID=c49326a9-91c4-4a62-9f1a-5267c6f0a399 /               ext4    errors=remount-ro 0       1
    # swap was on /dev/sda5 during installation
    UUID=83a39169-ba85-495b-ad8c-2c0ee3425760 none            swap    sw              0       0
    UUID=dcfb3e52-e7c8-4569-921b-7ed6e47bea4b   /HDD2    ext4    defaults    0    2
    gw@GW:~$

  5. #15
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: 2nd HDD Permissions

    In Linux case matters.
    this was wrong:
    cd /hdd2/
    this is where you have it mounted
    cd /HDD2/
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  6. #16
    Join Date
    Jul 2017
    Beans
    38

    Re: 2nd HDD Permissions

    Quote Originally Posted by oldfred View Post
    In Linux case matters.
    this was wrong:
    cd /hdd2/
    this is where you have it mounted
    cd /HDD2/
    OK, thanks. Any suggestions on how I can give User rslsync permissions to this drive? Am I using the right terminology?

  7. #17
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    17,105
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: 2nd HDD Permissions

    So, it appear the fstab is used to mount ext4 storage onto /HDD2.
    That is all excellent. It means that full Unix permissions are available and that access to the storage should be very fast.

    Looking at the ls -l /HDD2 output, there are 2 important things that I see.
    1. Normal Unix permissions are already wide open. There is no way to open them wider. Seriously, it is a security rick, IMHO. It is effectively 777 permissions, which I think should always be avoided. I'm not a big fan of always, but in this situation I am.
    2. ACLs are being used with the directories. That means we aren't actually seeing all the permissions. To see them all, the getfacl command must be used. My ACL-fu is weak. In 25+ yrs as a Unix admin, I've needed ACLs less than 5 times. If you were to remove the ACLs (and I don't know how to do that), then any tool you have should work to write/read in those directories.


    I hope you can find the solution you seek. Since I know nothing about Resilio Sync, I'll bow out now.

  8. #18
    Join Date
    Jul 2017
    Beans
    38

    Re: 2nd HDD Permissions

    Quote Originally Posted by TheFu View Post
    So, it appear the fstab is used to mount ext4 storage onto /HDD2.
    That is all excellent. It means that full Unix permissions are available and that access to the storage should be very fast.

    Looking at the ls -l /HDD2 output, there are 2 important things that I see.
    1. Normal Unix permissions are already wide open. There is no way to open them wider. Seriously, it is a security rick, IMHO. It is effectively 777 permissions, which I think should always be avoided. I'm not a big fan of always, but in this situation I am.
    2. ACLs are being used with the directories. That means we aren't actually seeing all the permissions. To see them all, the getfacl command must be used. My ACL-fu is weak. In 25+ yrs as a Unix admin, I've needed ACLs less than 5 times. If you were to remove the ACLs (and I don't know how to do that), then any tool you have should work to write/read in those directories.


    I hope you can find the solution you seek. Since I know nothing about Resilio Sync, I'll bow out now.
    Thank you, much appreciated.

    Are you saying that all users should already have wide open access to this drive?
    Last edited by brenneke; 6 Days Ago at 11:17 PM.

  9. #19
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    17,105
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: 2nd HDD Permissions

    Quote Originally Posted by brenneke View Post
    Thank you, much appreciated.

    Are you saying that all users should already have wide open access to this drive?
    The permissions for /HDD2 haven't been shown, so we really don't know about it, but all the directories inside it are open for the world to delete everything.

    ACLs can override any Unix permissions. We have not seen the ACLs. If you didn't use setfacl, I don't know how the ACLs were added. I've never seen any program add ACLs. Something smells funny to me.

    Also, "drive" is the wrong term. "Partition" is correct. In some situations, mixing those 2 up will cause total data loss.

  10. #20
    Join Date
    Jul 2017
    Beans
    38

    Re: 2nd HDD Permissions

    Quote Originally Posted by TheFu View Post
    ACLs can override any Unix permissions. We have not seen the ACLs. If you didn't use setfacl, I don't know how the ACLs were added. I've never seen any program add ACLs. Something smells funny to me.
    Not smelly, would have been added by me following installation instructions from here: (link posted earlier in this thread)
    https://www.linuxbabe.com/ubuntu/ins...tu-16-04-16-10

    Also, "drive" is the wrong term. "Partition" is correct. In some situations, mixing those 2 up will cause total data loss.
    Not saying you are wrong but this is a separate drive from the OS drive.

Page 2 of 3 FirstFirst 123 LastLast

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
  •