Skip to content
Advertisement

Tag: file-permissions

Why can’t I sudo echo a line in /etc/?

I am on centos and I did sudo echo ‘testline’>>/etc/test/test it said -bash: /etc/test/test: Permission denied However, when I do sudo vi /etc/test/test and insert testline and do :wq it writes out fine, why is this happening? Answer You need to wrap the whole statement (including the redirect) into a group so the sudo extends around it. Note: that, too,

What kind of owner and group for these below list of files?

what is the owner and group of this below file? It has 0 and 0 for owner and group. I found those permissions after connecting to a remote server for which we does not have write permissions. How to replicate the same permisions in my development machine? Answer 0:0 is almost always root:root owner and group. The command, cat /etc/group

Strange file permission in docker container (question marks on permission bit and user bit)

I write a Dockerfile and docker-compose.yml to build a custom image which combines beakerx and cling, which contents are below. and Some logs of docker-compose build were But When I run docker-compose up -d, I got PermissionError: [Errno 13] Permission denied: ‘/home/beakerx/.local/share’ error. So I drive into the docker image. Why the permission of ~/.local/share was a lot of question

lm75 kernel module available in userspace

I’m using the lm75 kernel module to interact with a sensor on a custom board. Every things works fine, I have my device mounted in /sys/bus/i2c/devices/5-0048. But I would like to let the user set the max temp hysteresis so in other words let the user write into the temp_max_hyst file. The permission for this file is read only except

Simulate permissions for non-login user

I want to perform some actions on behalf of some non-login users, such as e.g. www-data or uwsgi. My purpose is to test some permissions, check what dirs they can modify etc etc. Is there a recommended way of going about this, other than creating a shell and password for them and su ? edit: When I try to su

Advertisement