3
votes
2answers
1k views

Why would chmod give “No such file or directory” when running recursively?

I can change the permissions of the file directly: # chmod --changes --recursive ug+rwX /var/www/shared/tmp/cache/assets/BA0/280/sprockets%2F286302903364106648b609d708884f78 and I can also ...
0
votes
1answer
126 views

Permission samba shared www folder

I'm having trouble with permissions on a samba shared folder on ubuntu server 14.04. This is the www one. But actually, it's in /home/administrateur. As I want to preserve my www folder whatever ...
2
votes
3answers
4k views

vsFTPd default uploaded file permissions on Ubuntu not working

I have a Server running Ubuntu 12.10 x64, and the last version of vsFTPd. My user example.com has its home folder set on /var/www/example.com, I created a public_html folder inside and gave 777 ...
-1
votes
1answer
243 views

which is better, setfacl or chmod +a? [closed]

I have been working with Ubuntu for a year or so. Just the other week I have started to learn the Symfony framework which works faster with the ACL. In the installation and configuration of Symfony ...
4
votes
1answer
177 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 ...
0
votes
1answer
194 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
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
89 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 ...
1
vote
2answers
583 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 ...
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 ...
1
vote
1answer
965 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
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
321 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 ...
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 ...
2
votes
4answers
155 views

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 ...
2
votes
2answers
256 views

File Permissions on Ubuntu (umask)

I want to make all folders in a directory chmod to 755 and individual files to chmod 644. Is there a way I can use umask (e.g. umask 022) to specify these permissions in the future? Thanks in ...
1
vote
1answer
254 views

Ubuntu sftp default save permissions issue

I have a server running Ubuntu 8.04 LTS with sftp running on it. My problem is that when I access the server with sftp (using the username of one of my admin accounts, not 'root') and upload a file ...
0
votes
1answer
508 views

Home folder permission in Ubuntu for apache public_html

I read a lot about that here, but I guess I just can't get it. So here is what I got: I have Ubuntu 10.04 installed and I just created vhost for a domain, let's call it example.com. I also created a ...
1
vote
1answer
202 views

Made a mess of privileges for /var/www

I've got an installation of Ubuntu 10.10 running in virtualBox which I'm going to use for some local development. I've installed PHP, Apache and MySQL and want to use vsftpd to access /var/www so I ...
0
votes
3answers
670 views

Can't do Chmod on Apache error logs in Ubuntu

I am trying to clear the logs and I do not have permission since the file permissions on Apache error logs are like this: -rw-r----- When I tried to do something like chmod 777 error.log I got this ...
3
votes
1answer
2k views

Only allow a user to CHMOD and CHOWN in their home directory or a specified directory

I have a Windows user on my network who has Samba access to our linux development server. Occasionally permissions or ownership will become confused for reasons unknown and he will no longer be able ...
1
vote
2answers
633 views

Every file in a specific folder always 777?

I want to create a folder that is accessable via FTP on an Ubuntu Box. There are four users that are allowed to connect via FTP and I want them to be able to share files without restrictions. Is it ...
0
votes
1answer
129 views

Writing directory: permission denied even though dir seems to be chmodded correctly

I am having some trouble creating files in directory on my Ubuntu machine: I added myself to the www-data group in order for me to easily edit stuff in my /var/www dir on my development machine. ...
1
vote
1answer
354 views

Why cannot I create a file in a folder I own with chmod 655, but 755 works?

I have a backup folder owned by a system user (mongodb) and chmoded 655. When I try to create files in it, it raises a permission issue: root@maquina:/var/backups/mongodb# su -s /bin/bash mongodb -c ...
3
votes
2answers
3k views

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

Default owner of new files and directories?

How does one configure an Ubuntu 10.10 system to behave like this: User creates a new directory or file. User is the default owner of this file. The file's (or directory's) permissions default to ...
4
votes
1answer
686 views

Undoing chmod 777

Sometimes in desperation, to test if my problem is not the permission problem I do: sudo chmod -R 777 mydir/ In most cases it does not helps, and now I have two problems ;) Files inside mydir/ had ...
0
votes
1answer
314 views

Issues with chmod resetting on Ubuntu after ftp upload

Whenever I overwrite a file using FTP, the chmod of the file gets reset to 600. What can I do prevent this? I'd like to just set the chmod for the entire directory and never have it change.
4
votes
2answers
285 views

Accidential CHMOD 755

Alright, I accidentially chomdded everything to 755, which isn't as terrible as chowning everything to the local user. How insecure is this and how would I restore it easily, without reinstalling?