A Unix tool for changing file permissions
3
votes
4answers
88 views
Make recursive chmod faster
I have an installation script that unzips a directory, then recursively chmods its contents.
I'm surprised it takes almost 10 times the time it takes to unzip, to run the following two commands:
...
0
votes
0answers
10 views
How would I make ProFTPd allow members of a group to change permissions on files owned by the group?
I have set up my web server to handle php requests as the user/group 'www-data'(30000) and proftpd set to have virtual users started at 30001 in the 'www-data' group.
I know that you should not be ...
0
votes
1answer
55 views
How to set permissions for a CIFS mount with autofs?
I've set up a CIFS mount on my CentOS 6.4 server with autofs :
File /etc/auto.mnt :
Photos ...
0
votes
2answers
41 views
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 ...
-1
votes
1answer
39 views
I can't set 0777 as file permissions because owner/group is 48 48
I am trying to chmod a folder to 777 but I'm unable to it. It always reverts changes to
File Permissions: 341 (instead of 777)
Owner/Group: 48 48
Other folders run on Owner/Group 502 503 and I can ...
0
votes
2answers
74 views
Best way to recover mysql from a “chmod -R 777 /” with databases intact
Question:
What is the best way to recover mysql (or worst case: migrate away) from a "chmod -R 777 /" with databases intact?
System:
Ubuntu 12.04 LTS
MySQL 5.5.24
64 bit Amazon EC2 cloud server.
...
0
votes
1answer
48 views
Git prime/hub website deployment: documentroot changes save fine but permission denied for subdirectories
Following the instructions in A web-focused Git workflow I set up a prime and hub repository on my web server and then cloned the hub to my machine at home.
I started testing commits and pushes with ...
4
votes
1answer
82 views
chmod -R 777 on PXE server - why
So I am following a guide to set up a PXE server, for reference here are the links:
Actual PXE setup
NFS PXE setup
Live-cd PXE setup:
Now throughout these guides he keeps running the chmod -R 777 ...
1
vote
0answers
69 views
CHMOD permission denied on SMB share
I'm mounting an SMB/CIFS share on my CentOS 6.4 server using /etc/fstab as follows:
Mount windows share to /mnt/mywebsite
//10.1.1.4/mywebsite /mnt/mywebsite cifs ...
0
votes
1answer
63 views
CHMOD 0777, but Wordpress still not able to write files/folders
The day before yesterday I ordered my own VPS. But now I have problems with Wordpress, Wordpress is not able to create a .htaccess by itself, not able to write to it and plugins aren't able to create ...
0
votes
1answer
40 views
How to add write permissions to php/apache? [duplicate]
I've got the following scenario:
There's a folder named "uploads". It's owned by "root" and it's group is "webmasters". Permissions are set to 755.
drwxrwsr-x 2 root webmasters 4096 Mar 20 22:49 ...
0
votes
1answer
37 views
Chmod operation not permitted?
I'm trying to deploy a rails app and i've done it before, but this time i'm having a weird issue.
Why can i not run this chmod command? I'm currently logged in as user: csmsched
-bash-3.2$ pwd
...
1
vote
2answers
83 views
List all folders that have permissions of 777
Is there any way to list all the folders that have permissions of 777?
1
vote
1answer
82 views
chmod 1777 or 3777 on /tmp
Is there an ideal chmod for /tmp (with /var/tmp symlinked to /tmp)?
I've seen people mention it both ways just curious as to the difference.
Is it a security difference?
-4
votes
1answer
76 views
Chmod all files and directories recursively to 666 under /usr [duplicate]
I want to make an chmod command that's recursively will apply the privilegies to all directoris under that.
Example:
chmod 666 /usr
I want that every directory under "/usr" turn into permissions to ...
0
votes
1answer
43 views
Shared hosting, stop user deleting .htm file?
Hi guys I have set up a small shared hosting set up for friends.
I have set the file chmod permissions to
chmod 711 /home
chmod 711 /home/testuser
chmod 755 /home/testuser/public_html
chmod o+r ...
0
votes
1answer
90 views
Why is kjournald extremely active on a mostly quiescent filesystem?
Note: This is a "documenting my process" question that I'll be writing an answer to. Happily, serverfault already helped me solve this, because writing up my situation so others would be able to ...
0
votes
0answers
27 views
Proper user/group acces rules for apache web-site
I have a website which lays in some directory. Website has .htpasswd file for restricted acces and public_html folder where all files are. And I have index.php in public_html folder.
For simplicity:
...
0
votes
0answers
101 views
Local Website PostfixAdmin Access Forbidden - Error 403
I am currently having an issue loading the setup.php file on my webserver to setup PostfixAdmin. I am completely lost as to what the issue is, because I can open index.php in the same directory ...
0
votes
1answer
62 views
/dev/* permission
I accidentally sudo chmod 666 /dev/*. And now many devices in my computer messed up. I have fixed some of them like /dev/shm, /dev/snd but I am not sure about the rest. What's the correct permission ...
1
vote
1answer
45 views
sftp limitation: disable chmod +x
Do I have an option to forbid a user group or a sftpuser to set chmod +x?
The user shall be allowed to upload media files, but no php scripts to run for example.
0
votes
1answer
74 views
File readable by only PHP?
I'd like to make a file on my server be readable by PHP, but not directly accessible with a browser. Say my Apache installation's root is /apache. I'd like PHP to be able to get the text of ...
0
votes
2answers
110 views
CentOs, Folder Permissions
I would like to give an FTP user permission to write in a folder but should not be able to alter other files in the folder or sub folder in the main folder.
I have a root account, we are using the ...
2
votes
2answers
922 views
Using chown to change the group owner of a directory is not permitted…Why?
I am trying to execute chown on a directory that has the following permissions and owners:
drwxrwxr-x 2 justin devs 4096 Jan 1 20:42 test
I am trying to simply execute the following as the justin ...
0
votes
2answers
95 views
Change ownership and permissions of file
Is it possible to change owner/group of a file AND permissions with 1 command?
I tried:
chmod user1:groupOfUser1=770 file.txt
but it does not work.
0
votes
1answer
40 views
Samba users are writing files with the same owner
I created a Samba share and 3 users (Marc, Mary and Paul), both in Ubuntu (12.04 LTS) and Samba.
Then I configured 3 Win7 computers to access the share, each with different credentials.
I created 3 ...
0
votes
1answer
43 views
Ubuntu, How to prevent listing sub-directory if parent-directory is protected
I remember last time when I am on some Linux OS ( cannot remember ), when I change the mod of a directory to 711, that folder together with all of its sub-directories cannot be listed (ls -al) by any ...
0
votes
1answer
60 views
Default owner and group for new files/folders [duplicate]
Possible Duplicate:
How to set up default group permission in linux folder
I'm uploading to /var/www via SFTP and wondered how I can get it so when I upload a file or folder it always has ...
0
votes
0answers
48 views
Python script not executing after setting executable permission
i am having a python script #!/usr/bin/env python in top of my script? following is the permission i had set
-rwxr-xr-x 1 user1 user2 6423 Nov 15 15:12 test
i tried executing the script as user1 ...
-3
votes
2answers
59 views
Correção de permissão de pastas [closed]
Olá todos boa tarde.
Fiz uma mer... aqui e uma pasta minha ficou assim.
ls -lha
total 20K
?--------- ? ? ? ? ? brsdinfra001
Onde deveria ter alguma coisa como
drwxrwxr-x ...
3
votes
3answers
276 views
Allow PHP to write file without 777
I am setting up a simple website on webspace provided by my university. I do not have database access so I am storing all the data in a flat file. The issue I am experiencing is related to file ...
0
votes
3answers
59 views
Permissions on directories for file uploads? [duplicate]
Possible Duplicate:
What are the best linux permissions to use for my website?
What is the correct way to set up directories to allow user uploads on Linux? My websites upload dir is 755, ...
0
votes
1answer
89 views
Trying to include file from another account: permissions denied
I have a dedicated server running php with dso handler, I am including a global config.php from one account into all the other accounts. This works fine on apache when opening the sites via browser.
...
1
vote
1answer
926 views
rsync - failed to set permission - operation not permitted
I got the following command with this error
rsync -avz --links -O /home/jansiatest/.jenkins/workspace/svn_to_demo/trunk/CPS/ jansia@ps27670.dreamhost.com:/home/tasklite/temp
sending incremental file ...
0
votes
1answer
113 views
apache user directory access permission denied
I've run chmod 777 on /home/cache/, however the apache user is still unable to write to it. My php script is writing to this directory but got a permission denied error and don't know why.
ls -ld ...
0
votes
2answers
295 views
chmod not working on vbox shared folder
The folder /var/www was mounted during init, using:
mount -t vboxsf cuckoo_shared /var/www/ -o uid=1000,gid=1000,rw,dmode=755
Now, all the files belong to my user jdrummond as default. And also have ...
0
votes
1answer
294 views
File/Directory permissions for SFTP user
After using the SSH quite a lot on my 1.5 week old Debian 6 VPS, I wanted to start uploading files through SFTP. I already tried that earlier, but with the root account, which isn't possible with SSH ...
-2
votes
2answers
305 views
Chmod wont stick [closed]
I'm using CentOS on a virtual dedicated server.
When I go in as root, and change the chmod value of a folder it works. But, any files I place into that folder do not inherit the chmod I set.
This is ...
1
vote
0answers
52 views
Running trac on a debian server - error writing to trac.ini
I have trac running on my debian server and I set it up using mod_wsgi through apache. Now I have everything setup nicely, except I can never seem to write to a projects trac.ini file through the ...
2
votes
1answer
244 views
centos 6.2 gives read permission denied when root has set read permissions to all users
Installing Dropbox on Centos 6.2 owned by root.
Demonstrating that the dropbox folder is owned by root with read permissions to all
"root" user gives read permissions to all users
[root@localhost ...
4
votes
2answers
272 views
setfacl equivalent to chmod for setting/unsetting individual flag
Using setfacl command line arguments, is there a way to set/unset a single flag as the following command will do ?
chmod g+x FILE
Please note that:
setfacl g::x FILE
setfacl g::--x FILE
are ...
-1
votes
1answer
243 views
linux automatic change permissions in resolv.file
In various linux servers I see how the permissions of the /etc/resolv.conf file change automatically.
In state normal:
-r--r--r-- 1 root root 103 Jul 4 11:50 resolv.conf
In changed state:
...
0
votes
1answer
154 views
chmod -R 777 /. - RHEL 5.5
A shell script testing went bad and it issued
chmod -R 777 /.
to the system, instead of
chmod -R 777 ./
and as expected it wiped the critical meta data. We have turned off the system and it ...
0
votes
1answer
123 views
When is chmod 777 justified? [closed]
I know that one should avoid setting file/folder permissions to 777 and instead use a more granular approach.
I would like to know, if there are specific cases when using chmod 777 on a webserver is ...
1
vote
2answers
172 views
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 ...
3
votes
6answers
415 views
Correct recursive chmod, separate for files & dirs
I'd like to recursively chmod a directory so that:
Files are 0664
Directories are 0775
How to do it better, shorter, fancier? :) Maybe, use umask somehow?
All find solutions are too long: I ...
0
votes
2answers
219 views
Apache 404 Error While PHP File Exists
I am getting 404 error while the file exist. I gave the file (chmod 755) still the file does not show up. Strange part it only happens to few files. I am certain the file exists on the directory ...
1
vote
0answers
215 views
Unable to change permission of the files on mounted partitions in ubuntu 12.04 LTS
I have just installed ubuntu 12.04 LTS. I mounted my SOFTS(/dev/sda6) partiotion by selecting it on nautilis. After that i openend the terminal and tried to change the permissions of a file. The ...
-2
votes
2answers
284 views
Centos file permission issue
The script I'm using requires your files to be chmoded to 666 for editing, although even after I've chmoded the files it's telling me it couldn't write the files.
I think it might be a security ...
1
vote
1answer
391 views
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 ...


