Tagged Questions

A Unix tool for changing file permissions

learn more… | top users | synonyms

1
vote
1answer
234 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
1answer
114 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
127 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
134 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
460 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 ...
3
votes
2answers
9k 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
132 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
54 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
87 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
94 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
97 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
3answers
1k 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
80 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
156 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. ...
3
votes
2answers
4k 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
195 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 ...
1
vote
2answers
605 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
838 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
561 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
121 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 ...
3
votes
1answer
407 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
669 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
307 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
202 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
145 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
376 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
766 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
527 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
233 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
415 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
466 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 ...
1
vote
1answer
1k views

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
1
vote
1answer
157 views

Permissions nightmare - tried all I know

Working on a new client's dev site, which is a wordpress install on a Plesk box. I have SSH root access, and FTP access through a separate account. What I've done so far Initially I couldn't make ...
1
vote
3answers
511 views

Cannot login after chmod o -rwx

I have typed a recursive chmod o-rwx command from root in a linux via ssh. After that I can not login as root anymore. It is a huge problem now. Can I do anything to do to resolve this? I can only ...
142
votes
2answers
11k views

Why is “chmod -R 777 /” destructive?

This is a Canonical Question about File Permission and Why 777 is "destructive". I'm not asking how to fix this problem, as there are a ton of references of that already on Server Fault ...
0
votes
1answer
295 views

ubuntu change default files and folders permission

i have ubuntu 10.04 on my server. when i was create a file by ftp, php and ... files permission is 600 and folders is 700. how can i change default files permission into 644 and folders to 755? ...
0
votes
2answers
2k views

Change all file permissions to 644 and all folder permissions to 755 recursively

How to change all file permissions to 644 and all folder permissions to 755 recursively using chmod in the following two situation: If they had 777 permissions Regardless of the permission (with ANY ...
2
votes
2answers
2k views

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 ...
0
votes
1answer
1k views

Linux ACL behaviour: settings the mask changes 'ls' output, but not actual permissions

It might be the time of night, but this is puzzling me. Picture the following. [root@node1 acltest]# getfacl foo/ # file: foo # owner: root # group: testuser user::rwx group::r-x other::--- ...
2
votes
1answer
323 views

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 ...
0
votes
1answer
512 views

Cannot access directory via SFTP - “locked”-Flag

I'am trying to access a remote Directory via SFTP. ls in the parent dir says that where the d for directory should be, there is an l. Manpage of chmod says something about "mandatory locking", but ...
8
votes
4answers
2k views

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?
0
votes
3answers
234 views

Possible to globally change chmod permissions based on logged in user?

This is a little embarrassing to ask, but I just set up a ubuntu server with openssh. Is it possible to create a user that has read-only access to chmod **7 files if that user is not the owner, nor ...
-1
votes
1answer
326 views

chmod apply to user group [closed]

I need to set the permissions of a dir so that a usergroup in my ubuntu-server has read/write permissions. I understand that I'm supposed to use chmod (right?), but how do I set the permissions to ...
0
votes
1answer
135 views

How to achieve user permission isolation?

/opt/software /home/user1/file /home/user2/file user1 can rwx to /home/user1/file user2 can rwx to /home/user2/file softwarecan rwx to both /home/user1/file and /home/user2/file user1 can't rwx to ...
2
votes
2answers
238 views

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 ...
1
vote
1answer
1k views

Why can I only upload files via vsftpd if folders are chmod 777?

I have a problem with vsftpd on Debian: I can upload files if the chmod of all folders is 777, but with chmod 755. Please help. vsftpd.conf: local_umask=022 anon_umask=0755 file_open_mode=0755
1
vote
3answers
176 views

The secure linux server by dir permissions

I am using php on Linux / Apache server. I have Three type of directories like as |_ Writeale Directory |_ PHP Files |_ Image Files Writeable Directory would used only by PHP to writing some txt, ...
1
vote
2answers
102 views

What rights does /vol/www have on ubuntu web server?

We are deploying our rails app on a ubuntu 10.04 server. When cap deploy:setup, there is a error saying that: * executing "mkdir -p /vol/www/myapp /vol/www/myapp/releases /vol/www/myapp/shared ...
0
votes
2answers
486 views

Create Symbolic Link to files below user's home dir

I apologize in advanced if this question is better suited for Stack Overflow. We have a CentOS cPanel server and we want to share some PHP code base with another user. We don't have open_basedir ...