chmod (short for change mode) is a Linux / Unix command used to change permissions of files and directories.
0
votes
1answer
8 views
Previous version of CGAL with Macports: “Error: Unable to execute port: Could not open file”
I'm trying to install a previous port of cgal with macports. I'm following this How-to:
http://trac.macports.org/wiki/howto/InstallingOlderPort
I already read this answer but it didn't solve for me. ...
0
votes
1answer
19 views
group permissions for scp
We have a server running as a firebird user. We want to scp files to the server that are need by firebird but copied as another user: it-test.
What is the best way to set that up on the ...
0
votes
0answers
14 views
Change iPhone file permissions wihout jailbreak [migrated]
I want to delete some apps (games) but backup their save game data.
Since there's no way to save your saved game data the only way to backup this files is using something like iFunBox and copy both ...
0
votes
0answers
48 views
How do I set the default permission of 775 for all new files and directories in server?
I'm trying to set the permission of any new files to 775 by default (inherited from parent folder), so that every user group can edit these files. I have found and followed this tutorial with no ...
1
vote
3answers
88 views
whats the difference between chmod 777 and chmod 7777
I have a professor who insists on always typing chmod 7777, but I was taught that chmod 777 was the proper convention.
I tried them out on the command line and chmod 777 something.txt yeilds
...
0
votes
0answers
43 views
chmod: .: Permission denied & sudo chmod -R -rwx
I accidentally executed the following command in an important dir without knowing what the command does. Now I'm getting permission denied and not able to open the dir.
sudo chmod -R -rwx .
Please ...
0
votes
2answers
39 views
What unix permissions do I need?
I have a directory that hangs off root:
/data/my/folder/here/ and
/data/my/folder/herealso/
I wish all users to be able to write files to the here and herealso directories. But limit (as much as ...
0
votes
0answers
92 views
Windows attrib command changes file timestamp
I have some batch file running that does the following on a directory tree with several thousand files:
change file attributes, turn OFF readonly
do some stuff, add new files.
change file ...
1
vote
2answers
33 views
chmod symbolic notation: unexpected “=” operation behavior
I am reading The Linux Command Line by William Shotts and I read somewhere in the book a part regarding permissions which says The operation may be a “+” indicating that a permission is to be added, a ...
0
votes
2answers
42 views
changing the ownership of a file in linux
I have a file "test" on an Ubuntu system owned by the root. The ls -l option is shown below.
$ ls -l test
-r--r----- 1 root abacus 373 Nov 12 19:19 test
I know that only the owner of a file can ...
0
votes
0answers
140 views
Recursive write permissions on files and folders: Prestashop installation
I am trying to install Prestashop in my Linux machine. But it says
Recursive write permissions on files and folders:
~/config/
~/cache/
~/log/
~/img/
~/mails/
~/modules/
~/themes/default/lang/
...
0
votes
1answer
90 views
How to use chmod to change a file's permission?
I used ls -l to find file permissions in a shell and found this:
File 1: -rw-r--r-- 1 root root 451 Mar 9 15:25 file.class.php
File 2: -rw-rw-r-- 1 andy dev 872 Mar 9 15:43 file.class.php
I want ...
2
votes
0answers
50 views
mistakenly passed sudo chmod -R a-000 / now every thing is blocked [closed]
I accidently passed the command below:
**sudo chmod -R a-000 /**
Now my system is fully blocked. Even i am not able to login. Is there is any way out of it?
5
votes
7answers
556 views
“chown -R root /” how screwed am I?
I accidentally performed the command chown -R root / while trying to change the permissions to the public folder of my rails app. I believed this changed the permissions to all my folders on the / ...
3
votes
2answers
74 views
Restoring lost group permissions on mac
Using mac's terrible file sharing prefs, I managed to goof up permissions on my Documents directory. My non-Documents directories have permissions like this:
drwx------+ for .
drwxr-xr-x+ for ..
...
1
vote
3answers
146 views
difference between chmod 777 and chmod 007
What is the difference between chmod 777 and chmod 007? if 'others' means everyone, doesn't that strongly suggest the truth that chmod 777 = chmod 007?
-4
votes
1answer
33 views
Can someone explain chmod using the ug parameter works? [closed]
Can someone explain to me on how chmod ug= works ? i usually do chmod 777 or 775 or 644.
0
votes
3answers
81 views
Shared hosting, stop user deleting .html 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
0answers
128 views
linux chmod not working with windows flash drive
I have a dual boot ubuntu 12.04/win7 machine. I am trying to compile the latest m0d_wsgi file using ...
2
votes
1answer
320 views
icacls is giving access denied on remote file system
I am working on remote drive mounted on my system where i created some file i need to set some permission for that file.
I used icacls but its not working.
When i am trying to access file permission ...
0
votes
1answer
123 views
How to open a file with write access on OSX terminal?
I am trying to open private/etc/php.ini.default file to add detect_unicode = Off. But after opening above file with this command vim php.ini.default, it only opens this file as readonly. How can I ...
2
votes
0answers
66 views
Debian broken filesystem by chmod -R 0774 /
An user made the chmod -R 0774 / command.
When i execute the su command i get:
"it was not possible to define groups".
If i try to ssh from the root i get:
/bin/bash permission denied
the ...
0
votes
1answer
127 views
Change owner of file without being root
I suggest that I have a log file with 666 permission and its owner is alice. So user 'bob' can change its owner by this:
cp log log.temp; rm log; mv log.temp log
So how can I fix this risk?
0
votes
0answers
53 views
Apache can still access file with 000 persmission in DSO mode
One of my domain is compromised, so I went ahead and disabled the malicious script by changing the permission of that file to 000.
# ls -la /home/golf/public_html/wp-content/themes/yaris/search.php
...
0
votes
1answer
43 views
Cant write to directory when not logged in as root
I am switching a site over to amazon ec2 and the pages that allow a user to upload a file to a directory arent working. When Im logged in as root via ssh I can 'touch' a new file to there but not when ...
2
votes
4answers
156 views
Accidentally did “chmod 600 -R /” on my macbook pro
I accidentally entered sudo chmod 600 -R / when I meant to enter /Documents/some_file and now everything comes up as permission denied. The root password isn't working. All my applications are shut ...
3
votes
1answer
82 views
chmod always unsets setgid bit on directories if I'm not in a group
Here's the scenario: I'm using Ubuntu Linux (12.10, if it matters), and I've got a directory whose permissions are thus:
drwxrws--- paul www-data myfolder/
You can see the setgid bit is set. If ...
0
votes
2answers
100 views
1
vote
1answer
32 views
how to join paths to {} inside an -exec option of a find command?
//// SOLVED ////
I'm trying to copy several files scattered in a directory structure to another one where such files already exist but without write permission allowed. So I used a find command with ...
1
vote
2answers
118 views
Debian: Removing read permissions to a single user
i'm trying to set permissions with chmod in Debian Squeeze.
Its there any way to remove read permission to a single specified user?
chmod u-r file
That seems to deny permissions from the user ...
0
votes
0answers
79 views
Using chmod -b to remove ACLs but leave perms unchanged
By using chmod -b on my Isilon cluster I can remove ACLs. However, I'd like to remove all ACLs from a directory tree, leaving all permissions intact. So,
#chmod -b -R (no mode set) /foo/bar
This ...
1
vote
2answers
41 views
Changing permissions for specific folder
i need some help. I'm using Fedora 15. I have 2 users: user1 and user2 and directory in /usr/local/example_directory. Now for this directory owner is user1 and other users can only read this. I need ...
1
vote
1answer
44 views
Copy permissions from owner
How can I copy the all file permissions of a folder from owner to users?
Imagine that I have:
-rw-r----- 1 124982 5000 201 2012-06-24 06:45 documentation.html
I want to change to:
-rw-r--r-- ...
1
vote
3answers
134 views
Does permission 777 allow scripts outside your server to write on it?
Let's say example1.com is located in US, and example2.com is located in EU.
example1.com/folder/ has 777 permission.
Will a script in example2.com be able to write on example1.com/folder/?
Or is ...
1
vote
2answers
529 views
sftp chmod recursive
I have logged into a server via sftp via terminal.
When I run the command
chmod -R 755 ./*
I get the error You must supply a numeric argument to the chmod command.. How do I apply a recursive ...
0
votes
2answers
409 views
Chmod 644 on /etc/ any way to fix?
I tried to tab complete something and I guess it wasnt there. I know you are not supposed to set the permissions to /etc/ like that, but my permissions seem to be all messed up. whoami prints out ...
1
vote
1answer
98 views
How to give user read/write access to folders?
I'm running a certain script that is using a non-root user to do the following...
mkdir: cannot create directory `/srv/www/example.com/releases'
*** [err :: 12.23.45.789] : Permission denied
How ...
0
votes
1answer
129 views
Why is group write permission ignored in Ubuntu?
I want my user to have full access to the local Apache root folder, and I also want the Apache user to have full access to the same folder.
What I did was create a new group called DevGroup and I ...
0
votes
1answer
72 views
Does “chmod -R 700 directory_1” update directories pointed by softlinks?
Does "chmod -R 700 directory_1" update directories under softlinks? Forexample, there is a softlink under directory_1 folder: "my_softlink". And my_softlink points to a directory_2.
Will permissions ...
1
vote
1answer
397 views
chmod'ing file on exFAT
Is it possible to chmod a file on an exFAT formatted drive? I'm on Mac OS X and I would like to set the permissions to not be 777. Is this possible?
What I'm really trying to do is set the ...
0
votes
1answer
171 views
On Linux allow a file to be read/write but not deleted
Is there a way in Linux on a ext4 file system that I can make a file readable and writeable but not deletable?
The directory that the file resides in still needs to be writeable by the owner of the ...
2
votes
2answers
2k views
How to chown/chmod all files in current directory?
I am trying to change the ownership and permissions of some files (and directories) in the current directory. I tried this:
chown username:groupname .
...expecting that it would affect all the ...
3
votes
2answers
311 views
I don't fully understand CHMOD file permissions, can anyone better explain it?
I've searched the internet for some time for a good explanation of CHMOD, but have yet to come by a good explanation, since every explanation uses the same words with small variations.
What I know so ...
1
vote
1answer
395 views
folder permissions on FreeBSD
I have a drive on my FreeNas (8.2) box which transmission copies files automatically when it is finished downloading them. It works fine as long as the download is a single file, if it's folder with ...
2
votes
1answer
257 views
Making a program always run as root in OS X
I'm trying to make a C program run always as root, no matter who is calling it.
Basically, I want it to invoke "mkdir /test" as an example.
So I created the C program as follows:
#include ...
2
votes
1answer
274 views
Do I have to chmod after ln -s?
After I create a symlink with 'ln -s' (in Ubuntu 12.04, as root), it seems to be created with 777 permissions. Is that normal? Should I always do 'chmod 644' after doing 'ln -s'?
3
votes
2answers
597 views
How can I do a recursive chmod only on directories?
I want to change permissions on a tree on Centos 4 to add execute permissions for all directories recursively from a directory. If I use normal chmod, files other than directories are also modified:
...
2
votes
2answers
798 views
“chmod” doesn't want to work
I wrote a /bash script and to execute it I decided to set all the rights, so I tried
chmod 777 * //I had 3 text files in the directory, so that's ok
Then to check the result I typed
ls -l
But ...
2
votes
2answers
324 views
chmod: Set files to different permissions from directories
Is there away that I can run chmod to set the folders at 0755 and the files at 0644, or do I have to apply 0755 to all folders individually?
0
votes
0answers
213 views
Can't write to file - 'Operation not permitted' WITH sudo
I am having trouble writing to a few files on an external HD. I am using it to store media files as well as my time machine backup. The drive is formatted as HFS+ Journaled, and other files on the ...