Welcome to the Linux Foundation Forum!

Permission Denied when user has rw permissions set

I was testing file permissions and ownership an ran into a problem.

I have a Fedora 38 vm which has 2 users student and pipilacha-guest. Both belong to a group called sexygs.

I have a folder called sexies in /home/student but belongs to pipilacha-guest and sexygs.

Connected via SSH and logged in as pipilacha-guest I cannot access the sexies folders and neither myfile, but I have permissions for both??

Am I missing something?

Best Answers

  • luisviveropena
    luisviveropena Posts: 1,215
    Answer ✓

    Hi @m0007, it was a pleasure to work with you in the Office Hours :)

    So, it was a matter of missing permissions on the /home/student directory, and we fixed it :)

    I recommended to work on another directory as /mnt/ or /tmp/ , so it's not necessary to modify the owner and permissions of a home directory of a user account (which has security implications).

    Regards,
    Luis.

  • m0007
    m0007 Posts: 2
    Answer ✓

    Thanks again @luisviveropena, I appreciate the help and recommendations!

Answers

  • luisviveropena
    luisviveropena Posts: 1,215

    It's a pleasure @m0007! Whenever you need assistance, you are very welcome :)

    Regards,
    Luis.

  • rastux
    rastux Posts: 1

    maybe can you check the owner with the ls -ld maybe you have a ldap user and a local user in this case you need validate /etc/nscd and nslcd

Categories

Upcoming Training