Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission denied creating file in a world-writable directory #23

Open
vipseixas opened this issue May 11, 2017 · 1 comment
Open

Permission denied creating file in a world-writable directory #23

vipseixas opened this issue May 11, 2017 · 1 comment
Assignees
Labels

Comments

@vipseixas
Copy link

Using infinit 0.7.3 on a CentOS7.3, mounted a volume and set the root as world-writable:

$ infinit acl list --path . 
.:
  inherit: true
  world: rw
    fasolti (owner): rw
$ touch one
$ sudo touch two
touch: cannot touch 'two': Permission denied

I though maybe the user must be known by infinit, so I tried to create a root user:

$ infinit user create --name root
Generating RSA keypair.
Locally saved identity for user "root".
$ sudo touch two
touch: cannot touch 'two': Permission denied

Last try was to give explicit permissions to user root:

$ infinit acl set --path . --mode rw --user root
infinit: fatal error: unable to set extended attribute: Invalid argument

What am I doing wrong?

@Dimrok Dimrok self-assigned this Aug 25, 2017
@Dimrok Dimrok added the ACL label Aug 25, 2017
@Dimrok
Copy link

Dimrok commented Aug 25, 2017

Hi @vipseixas.

Sorry for the late answer.

When you mount an Infinit volume, it uses the infinit user named after --as, INFINIT_USER or the default user name and mounts the volume as the current UNIX user.

Permissions inside the volume are managed by Infinit but access to the volume is limited to the UNIX mounting the volume, that's why sudo touch won't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants