Questions tagged [permissions]

In computing, permissions (often called "privileges," "access rights" or just "rights") are rules associated with objects on a computer or network. Permissions determine which objects can access which objects, and to what extent.

In computing, permissions (often called "privileges," "access rights" or just "rights") are rules associated with objects on a computer or network. Permissions determine which objects can access which objects, and to what extent.

For example, file permissions are rules placed on a filesystem object defining which accounts are allowed to access the object, and what actions those accounts can take on the object, such as read, write and/or delete.

3641 questions
11
votes
2 answers

How to remove a non-empty directory which is not owned by the user in Linux?

If a directory "foo" is owned by user A and contains a directory "bar", which is owned by root, user A can simply remove it with rmdir, which is logical, because "foo" is writable by user A. But if the directory "bar" contains another root-owned…
Alex B
  • 1,714
  • 2
  • 18
  • 30
11
votes
4 answers

Why does FIND on Windows 7 give an "Access Denied" error?

I have an administrator account on a Windows 7 x64 machine. It is not THE administrator account, the account is simply a member of the administrators group. The install is default. When the user opens a command prompt it ends up in the users'…
rann
11
votes
4 answers

Account to read AD, join machine to domain, delete computer accounts and move computers to OUs

I want to create an account that will perform the following: Join computers to a domain (not restricted to 10, like a normal user) Check for computer accounts in AD Delete computers from AD Move computers between OUs I don't want to allow it to do…
Ben
  • 1,137
  • 9
  • 26
  • 44
11
votes
4 answers

How to allow non-root user to listen on privileged port?

I want syslog to run as a non-root user on my linux box. That makes it impossible for it to bind to port 514 - because that's a privileged port. Is there any way I can grant non-admin user "foo" the ability to listen on port 514?
Dan Goldburt
  • 133
  • 1
  • 1
  • 6
11
votes
1 answer

Prevent file from being changed under Linux

What's the command under Linux to mark a file as "locked"/to prevent any changes from being made to it? I'm not talking about chmod. There's a property that can be set (the name escapes me at the moment) which prevents even processes running as…
Josh
  • 9,190
  • 28
  • 80
  • 128
11
votes
3 answers

How to allow members of a group to change file permissions on linux

I need to allow members of the group 'ftpusers' to be able to change permissions on all objects inside a certain directory. I was looking into how to do it but all I have found is how to do it on BSD: chmod +a "ftpgroup allow writesecurity"…
Drasko
  • 135
  • 1
  • 2
  • 7
10
votes
3 answers

Preserving file and folder permissions with rsync

I maintain a backup of my email accounts using this command: sudo rsync -av --delete --progress -e "ssh -p pNumber" --rsync-path="/usr/bin/rsync" /vmail/ user@my_backup_server:/home/user/backups/vmail/ Source: Most email folders are owned by user…
W.M.
  • 204
  • 1
  • 2
  • 8
10
votes
2 answers

When running vpnc in docker, get 'Cannot open "/proc/sys/net/ipv4/route/flush": Read-only file system'

I'm trying to run console Cisco VPN client in Docker. I start the container like that: docker run -it -v /srv/vpn/keys/:/root/keys/ --network=host --cap-add=NET_ADMIN --device=/dev/net/tun -v /dev/net/tun:/dev/net/tun vpn-vpnc-client_img And then…
Dmitriusan
  • 367
  • 3
  • 15
10
votes
1 answer

Security Wordpress on IIS hosted sites.

Since yesterday I,ve got strange things happening on one of my websites. The index.php of my wordpress site on IIS changed from 1 kb to 80 KB. Also map.xml and sitemap.xml are new in the directory. Some additional files are also found in…
Lt Lev
  • 101
  • 5
10
votes
1 answer

Different permissions per log file when using rsyslog

Is it feasible to define different permissions per log file, using rsyslog? $FileCreateMode applies to all, but I want different permissions for a specific file.
yannisf
  • 577
  • 2
  • 6
  • 15
10
votes
2 answers

Logstash can't read files it should have access too

I've added user logstash into group adm using the command $ usermod -a -G adm logstash. One of the files that the logstash agent is trying to read is /var/log/nginx/foo-access.log, which has the following permissions: -rw-r----- 1 www-data adm 0 Jul…
Phil Sturgeon
  • 291
  • 1
  • 3
  • 12
10
votes
5 answers

Why is /dev/urandom only readable by root since Ubuntu 12.04 and how can I "fix" it?

I used to work with Ubuntu 10.04 templates on a lot of servers. Since changing to 12.04 I have problems that I've now isolated. The /dev/urandom device is only accessible to root. This caused SSL engines, at least in PHP, for example…
The Shurrican
  • 2,240
  • 7
  • 39
  • 60
10
votes
4 answers

Can a file that is executable be read?

If a file has permissions -rwx-wx-wx can it be read by other and group users, or can it only executed and written? Is there some way to read an executable file by executing it?
Tom
  • 731
  • 3
  • 11
  • 24
10
votes
4 answers

UNIX permissions to allow group users to kill each others' processes

Let's say we have a group (dev) which has many users and a shared development directory with g+rwx permissions on all contained files. Is this setup sufficient so that any dev user can kill a process launched by any other dev user (assuming the…
maerics
  • 203
  • 1
  • 2
  • 7
10
votes
2 answers

What does the 'S' linux file permission mean

I've seen various Linux file permissions such as rwx and rws, but I have never seen the permission set rwS. Can someone please explain to me what the capitol 'S' stands for?
Matthew24
  • 103
  • 1
  • 4