0
votes
0answers
34 views

I broke SSH by using chmod on an EC2 Instance — How do I correct?

I have been running an Amazon EC2 Instance for a while, and recently accidentally changed permissions/ownership on folders recursively. I can no longer SSH into the instance. I do not recall what the ...
0
votes
0answers
9 views

cygwin's chmod behaves as working, but it does not work

My Cygwin installation is behaving strangely: chmod does not work. [09:45 Administrator@DellIns14 ~] > ls -ls /usr/bin/chmod 64K -rwxr-xr-x 1 Administrator None 38K Feb 6 2012 /usr/bin/chmod ...
0
votes
1answer
22 views

Granting full rights on all files (owned by su) within certain directory

I got some trouble with a server situation, where i keep some configuration files in a sub-directory of a web project. Using my superuser account, i make changes to these files, which NetBeans commits ...
0
votes
1answer
26 views

How do I do undo chmod /usr/bin

For some reason I was messing around and did chmod -x /usr/bin/* (no idea what I was thinking) Is there a way to fix this, because at the moment nothing is executable
1
vote
1answer
61 views

Linux permissions, mv is denied

I have the following structure (property is in the form user:group, user A belongs to both groups A and B, user B is just in the B group) : + dir1 rwxrwxr-x A:A + dir2 ...
0
votes
1answer
84 views

Unable to retain any root created files and folders after warm reboot in linux

I installed and ran petalinux on zynq board. It runs perfectly fine and boot in around 3 seconds. To boot it this fast I had to do some configuration before compiling the source. The problem that I ...
0
votes
1answer
57 views

Possible to mount an NTFS partition with uid=1000,gid=1000,dmask=022,fmask=133 but allow files to later be chmod'd?

This is for a single-user system that's using an NTFS partition as its $HOME; is it possible to mount the partition in such a way that New files would be owned by $USER:$USER with 644 permission ...
1
vote
1answer
25 views

list out owned file/directories and change its permissions

Can anyone please tell how can I change files/directories owned by me only. below is the command that list out files/directories owned by me find . -user <username>
0
votes
1answer
89 views

Force file and sub-directory permissions on OS X server

We have an OS X development server at work for five developers, creating mainly Symfony2 based websites. Out of the five only two of us are in the sudo group, meaning if the others had issues with ...
2
votes
0answers
121 views

OSX how to chmod a mounted AFP folder from NAS

I have mounted a drive from my DLINK DNS 320 Nas onto my Mac Mini 10.9 via AFP. One of the subfolders where I usually store photos (named '2013') is currently showing restricted access permissions, ...
0
votes
1answer
73 views

Permissions of files/directories in Unix

It appears that each file/directory has a given set of permissions shown by the 10 characters to the far left of each listing if one were to type into the terminal ls -l Considering that you can ...
0
votes
1answer
212 views

Changing permissions (read-only) for specific user for specific folder and sub-folders/files in RedHat?

Question is about user permissions in RedHat. How to give read-only permission to specific user just to read a specific folder and its sub-folders and files? How can I do it? I've tried: chmod a+r ...
1
vote
1answer
266 views

Permission denied altough chmod 777

I am running following commands: $ ls total 12K drwxrwxrwx 3 szr szr 2.0K Nov 14 12:08 . drwxrwxrwx 12 szr szr 2.0K Nov 14 11:23 .. -rwxrwxrwx 1 szr szr 1.6K Nov 14 12:08 config.xml -rwxrwxrwx 1 ...
0
votes
0answers
81 views

Weird permissions getting set on directories after rsync

I've got a drive on a Mac (OSX 10.7.5) that I'm sharing on the LAN. In the system preferences, the share is set so System Administrator has Read & Write access, System Group has Read Only, and ...
-1
votes
1answer
110 views

Linux directory permission inheritance for new files created

ive following folder drwxr-xr-x 7 root root 45056 Nov 25 12:39 data which include sub dirs and files its all 755 , but when i create new file inside these dir its get permission -rw-r--r-- 1 ...
1
vote
1answer
239 views

Unable to change access permissions on external ntfs Harddrive

I am fairly new with Linux when it comes to mounting hard drives, so hopefully this is a simple question. I recently purchased a 3TB hard drive that would have read/write access with both Mac and ...
0
votes
1answer
63 views

CentOS: How to prevent a user from executing an application installed in a specific directory

I have an application installed in /etc/mydir. I have executed the following to remove the ability for users to execute this program. chown root:group1 /etc/mydir -R chmod 700 /etc/mydir -R I ...
0
votes
1answer
295 views

How should chmod and chown be used together?

I recently sold my mac, and before doing so I put its files on an external HDD. Now I'm using Linux to move those files to a larger HDD, but some folders still retained some residual mac permissions, ...
1
vote
1answer
69 views

Changing chmod flags back

I'm fairly new to the whole UNIX / command shell sort of stuff, so I apologize for any ignorance for something I am not aware of. And by new, I mean extremely new. I was confused by how to change a ...
1
vote
2answers
136 views

Convert ls -ld to chmod/chown commands

X home dir permissions: drwxr-xr-x Y home dir permissions: drwxr-x--x So my question is, how can i convert drwxr-x--x to a chmod/chown command so I can put the same permissions that Y has on his home ...
1
vote
1answer
146 views

Changing access rights of the specific folder for specifeid user

what is the exact analog of the following two commands in linux # chmod -R +a "www-data allow read,delete,write,append,file_inherit,directory_inherit" /path/to/moodledata $ sudo chmod -R ...
2
votes
3answers
711 views

What does the 3 mean in drwxrwsr-x 3

I'm following directions on configuring Dovecot MDA and the instructions are telling me that /var/mail should have the following permissions: drwxrwsr-x 2 root mail When I ran ls -ld /var/mail the ...
0
votes
0answers
311 views

Chmod not working on /var/www/

I am running an Ubuntu 11.10 x86 VPS. I have given a user sudo privileges, and for some reason I cannot recursively chmod /var/www/. I am running Nginx with php-fpm, although that shouldn't matter. ...
1
vote
2answers
1k views

How to chmod +x a file in Windows, for use in Linux?

I have a file that needs to be executable in Linux, which I'd do by using chmod +x when using Linux. My problem is: this file is compiled in Windows, and it's a pain to have to open my Ubuntu VM to ...
-1
votes
1answer
1k views

Take control of all disks/filesystems automatically in linux (Kali)

I have two mac disks plugged into my Linux Kali and for the life of me I cannot get ownership of them. (LaCie) I don't have this problem in Windows or Mac, I just copy the files. Drag and drop. But ...
0
votes
2answers
2k views

cannot create directory. permission denied. but i have permission

i'm fairly new to linux, and ran ubuntu the other day. it is running dual boot with windwos 8. now, the problem is, even though i log in as root and give a specific folder ALL PERMISSIONS (#chmod 777 ...
0
votes
1answer
466 views

Can't change folder permissions on FAT32 partition-Mac OSX

In have an external hard drive which has two partitions: Mac OSX Extended Journaled MS-DOS FAT Basically if I select get info for any file/folder on the FAT partition, there is no option to change ...
0
votes
2answers
169 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 ...
1
vote
2answers
56 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 ...
1
vote
1answer
3k 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/ ...
5
votes
7answers
2k 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 / ...
2
votes
3answers
686 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?
0
votes
3answers
149 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 ...
2
votes
0answers
114 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
78 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 ...
3
votes
1answer
379 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 ...
1
vote
2answers
84 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 ...
2
votes
3answers
261 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 ...
0
votes
2answers
981 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 ...
0
votes
1answer
327 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
119 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
583 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
780 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
2answers
810 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
1k views

Windows 8 permissions (CHMOD) with XAMPP

While I know that CHMOD is impossible in Windows, I do have a problem with permissions. I'm running XAMPP on Windows 8 Release Preview and I'm trying to install ModenaCam. However, I get an error ...
3
votes
3answers
128 views

linux permission conflicts

I'd like to ask you something that's bothering me for the last couple of days. On my system I keep a folder called myscripts under my usual home folder. What I tried to do is chmod 500 myscripts ...
1
vote
2answers
201 views

find files where group permissions equal user permissions

Is it possible to do something like find -perm g=u? I say "like" because -perm mode requires mode to specify all the bits, not just g, and because I can't put u on the right side of the =, like I can ...
1
vote
1answer
364 views

Accidentally removed read permissions from folder. How do I get back in?

I wished to have a given folder and file and all descendants, write permissions. I wished that ALL files and folders could be recursively granted he following permissions: 777 So I tried: chmod -r ...
0
votes
1answer
221 views

what do these permissions mean?

I did chmod on some files in Mac 10.7.3 and I accidentally entered the code 7744 instead of 744. The resulting permissions were: -rwsr-Sr-T After seeing this I reran chmod and fixed the ...
2
votes
1answer
241 views

Unable to create files in a directory

I have created a directory in Virutalbox. Using VBoxManage, I am executing a script inside the Ubuntu VM directory I created above from Ubuntu host OS. But if the script in the VM contains commands ...