Questions tagged [chmod]

A Unix tool for changing file permissions

248 questions
3
votes
3 answers

setgid and group write - possible for recursive directories?

I'd like to set the gid bit so the child files/folders will be set to a specific group. But I noticed that the permissions for group are only set to read and execute, not write - by default at least. Is it possible to set it to ensure that the group…
Chris Drumgoole
  • 315
  • 1
  • 4
  • 9
3
votes
2 answers

root directory permissions changed to 777 by mistake whats now?

By Mistake on Ubuntu 9.04 my colleague has changed the permissions to 777 on root directory (/) whats the best way to recover the permissions ?
necromancer
  • 141
  • 1
  • 1
  • 4
3
votes
1 answer

How do you give full access w/ chmod to multiple groups? Need to use ACL's?

First of all, thanks for reading. I've had success running a plist launchd job that is in my LaunchAgents folder. It basically calls a small shell script that chmod's a folder's permissions. I then have another job that calls another script that…
2
votes
1 answer

/var/run/screen permissions changing to 775 without restart

Good , I am currently having an issue with several of my boxes running CentOS 7.3.1611 wherein the permissions for /var/run/screen are being changed to 775, resulting in the error "Directory '/var/run/screen' must have mode 755".…
sssssss340
  • 21
  • 1
  • 3
2
votes
1 answer

Prevent deletion of folder but let access to everything inside of it

I know there is the +i flag for files and directories, but i have a deeper Problem. Is there a way to prevent a folder from being deleted by an User which should be able to create / access / remove files and folders INSIDE the delete-protected…
fechnert
  • 133
  • 9
2
votes
4 answers

Why do many linux files have others=read access?

Can I run chmod o=- -R / ? I don't want a newly created user to be able to cat /etc/passwd, just because of its default permissions. And I want to understand why these defaults were chosen for permissions on all (well most) system files as well as…
Devrim
  • 1,187
  • 4
  • 16
  • 29
2
votes
2 answers

ls permission denied even with execute permissions

I chowned recusively /srv/site to www-data:www-data and chmodded it recursively with ug+rwx. I then added myself to group www-data. $ sudo usermod -a -G www-data cyrus $ sudo chgrp -R www-data /srv/site $ sudo chmod -R ug+rwX /srv/site However, why…
Zhianc
  • 123
  • 4
2
votes
2 answers

linux: grant write access to a folder for a single user

let's say we have dir1 with mode 755 root root and I want user1 to be able to write to the directory, but I don't want to add him to the root group or change the user or group ownership of the directory. Is there something along the lines of chmod…
user160910
2
votes
2 answers

dkimproxy unable to read private key

I just found this error in my server logs May 17 14:55:07 marcus dkimproxy.out[1005]: signing error: Error: cannot read /etc/ssl/private/dkim_server/dkim_server.key: Permission denied dkimproxy runs as dkim user, member of both dkim and ssl-private…
usr-local-ΕΨΗΕΛΩΝ
  • 2,359
  • 7
  • 34
  • 52
2
votes
1 answer

Adding Apache to a Developer Group (Web Permissions)

On a private server with an application that needs write access (Wordpress), is it better to add Apache's web user (www-data) to the "developers" group that owns /var/www or use fastcgi / suphp instead to escalate privileges? Note: the only users in…
Trent Scott
  • 959
  • 1
  • 12
  • 28
2
votes
1 answer

Set Default User / Group (Sticky Bit) in Ubuntu

To enforce the following permissions on files in /var/www, can I use the commands chmod u+s and chmod g+s? Permissions: chown -R root:web /var/www chmod -R g+rw /var/www
Trent Scott
  • 959
  • 1
  • 12
  • 28
2
votes
2 answers

Setting up user permissions for new user

I want to add a new user to my CentOS 6 server (let's call him Barry). I've made the user account Barry and added him to a group I created called webusers like this: groupadd webusers useradd -G webusers Barry passwd Barry Now that I have a user…
Whitey
  • 61
  • 1
  • 3
  • 4
2
votes
1 answer

Cannot find command after reboot even though chmod +x was successful?

Dealing with a weird problem on CentOS trying to add the Play! framework to my path. Just earlier I successfully did a chmod +x play on Play! and I could run commands. Then I rebooted and it completely fails. All attempts to retry chmod fail. I'm…
crockpotveggies
  • 336
  • 2
  • 12
2
votes
2 answers

Make files editable for guests without using chmod

Sorry if this is the wrong place to post this, or if it has been posted before. I couldn't find anything though. If I log on to a linux server without supplying a username or password (from windows through samba), what user am I logged on as? The…
user84273
2
votes
4 answers

How to own a folder and use by 3 users

3 users, 1 folder. Users: vsftpd (FTP server), bobmarley (normal user), www-data (Apache user) How to unite them and make so that each user can modify any of these user's data, without doing CHMOD 777? Ex.: bobmarley created a file…
alryaz
  • 21
  • 1