Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Almalinux 9 - new partition created but root has ownership

plumbergplumberg Veteran, Megathread Squad

I re-installed almalinux on a storage vps. I want to mount the disk as /data. I setup up the same via manual partitioning during the install. All good.

When I login my regular user, part of the wheel group cannot access that as it's owned by root.

What is the best way to manage this? Definitely I do not want to use sudo for doing a ls.

Thanks in advance!

Comments

  • tentortentor Member, Host Rep

    What is an issue with chown? Should work for ext4

  • @plumberg said:
    I re-installed almalinux on a storage vps. I want to mount the disk as /data. I setup up the same via manual partitioning during the install. All good.

    When I login my regular user, part of the wheel group cannot access that as it's owned by root.

    What are the current permissions for /data ?

  • Can you show your fstab as well?

  • plumbergplumberg Veteran, Megathread Squad

    @fredo1664 said:
    Can you show your fstab as well?

    [root@localhost ~]$ cat /etc/fstab
    
    #
    # /etc/fstab
    # Created by anaconda on Thu Oct 17 20:19:51 2024
    #
    # Accessible filesystems, by reference, are maintained under '/dev/disk/'.
    # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.
    #
    # After editing this file, run 'systemctl daemon-reload' to update systemd
    # units generated from this file.
    #
    /dev/mapper/luks-ddbcf3a1-4f40-4cde-8b41-e2941e21b761 /                       xfs     defaults,x-systemd.device-timeout=0 0 0
    UUID=eaa47526-1bf1-491f-ab4f-ed36796ecb93 /boot                   xfs     defaults        0 0
    /dev/mapper/luks-ba7b5791-2434-414b-b142-ba7f28acb098 /data                   xfs     defaults,x-systemd.device-timeout=0 0 0
    /dev/mapper/luks-db7c2c7c-87cf-4e9b-a312-e6fe726a63a3 /home                   xfs     defaults,x-systemd.device-timeout=0 0 0
    /dev/mapper/luks-5dce5d93-83d5-4572-a4bc-986f3c643409 none                    swap    defaults,x-systemd.device-timeout=0 0 0
    

    @angstrom said:
    What are the current permissions for /data ?

    drwxr-xr-x. 2 root root 6 Oct 17 16:19 data

  • @plumberg said:

    @angstrom said:
    What are the current permissions for /data ?

    drwxr-xr-x. 2 root root 6 Oct 17 16:19 data

    You said in your opening post:

    What is the best way to manage this? Definitely I do not want to use sudo for doing a ls.

    Do you mean to say that as an ordinary user, ls /data doesn't work?

  • plumbergplumberg Veteran, Megathread Squad

    @angstrom said:

    @plumberg said:

    @angstrom said:
    What are the current permissions for /data ?

    drwxr-xr-x. 2 root root 6 Oct 17 16:19 data

    You said in your opening post:

    What is the best way to manage this? Definitely I do not want to use sudo for doing a ls.

    Do you mean to say that as an ordinary user, ls /data doesn't work?

    Ls probably does. Need to write as well.

  • raindog308raindog308 Administrator, Veteran

    @plumberg said: drwxr-xr-x. 2 root root 6 Oct 17 16:19 data

    @plumberg said: When I login my regular user, part of the wheel group cannot access that as it's owned by root.

    Which makes sense, as root has read/write/execute, the group is root (with read/execute), and everyone has read/execute.

    If you want the wheel group to have read/write, then:

    chgrp wheel /data
    chmod 775 /data
    

    Now your group will be able to write to it.

    Or just su to root and do whatever you want. The Internet police are not going to arrest you because you don't use sudo.

  • @raindog308 said:
    The Internet police are not going to arrest you because you don't use sudo.

    Over the years Have I been afraid for nothing all these years?

  • @tra10000 said: Over the years Have I been afraid for nothing all these years?

    sudo rm -rf /fear and move on.

    Thanked by 1tra10000
Sign In or Register to comment.