chmod

SSH into Amazon EC2 Instance

I'm working to set up Panda on an Amazon EC2 instance. I set up my account and tools last night and had no problem using SSH to interact with my own personal instance, but right now I'm not being allowed permission into Panda's EC2 instance. Getting Started with Panda I'm getting the following error: @ WARNING: UNPROTECTED PRIV...

chmod syntax in FTP-Client on all subdirectories

which ftp client or which syntax allows easy chmod of subdirectories? ...

File permissions in cygwin and MVFS

I am using Cygwin with a dll version of 1.5.19 (yes, out-of-date, I know, but we're doing it for configuration control reasons). All my files (existing and newly created) show up with permissions 644, despite a umask of 022. Also, using chmod doesn't change the permissions. I have ntsec set in the CYGWIN environment variable. I need ...

CHMOD and the security for the directories on my server

I have a folder on my server on which I have changed the permissions to 777 (read, write and execute all) to allow users to upload their pictures. What are the security risks involved in this? I have implemented code to restrict what file formats can be uploaded, but what would happen if someone was to find the location of the directory,...

Why are my file permissions on Apache being reset?

We recently switched from using PCs at work to Macs, so I'm new to the *nix way of doing things. I have the default Apache running that shipped with 10.5, but I've noticed that when I drag files from a Windows server to my machine, the permissions are changed. Specifically, I'm writing data to an XML file, and occasionally after swapping...

Unable to make Applications folder writeable in Mac

My Vuze cannot update itself as it claims that my application folder is not writeable. I tried to make it writeable by chmod 777 /Applications I get the following error $chmod 777 /Applications/ chmod: /Applications/: Operation not permitted How can you make /Applications folder writeable? ...

What is the normal CHMod

On my web server, my file permissions are all over the place and I want to 'reset' everything back to how it originally was. I don't want any users to be able to come in and delete things off my web server! I just want them to be able to look at php pages etc. What CHMod should I use? ...

check permissions of directories in python

hi i want a python program that given a directory, it will return all directories within that directory that have 775 (rwxrwxr-x) permissions thanks! ...

PHP mkdir(), chmod() and Windows

Hello, I am using the PHP function mkdir($path, 0777) to create a new directory on an Apache server (running on Windows). When I create this and view the folders, Windows has set the dir as read only. Is there a way of changing this without using exec() to cacls.exe? The PHP documentation states that chmod() doesn't work on Windows bu...

Which files do control the visibility of your website?

I run the following command at uni to my user account chmod -R 700 * Then, I run chmod -R 755 public_html My homepage remains to be "Forbidden" when I browse to it. The permissions of my user account 4 drwx------ 5 Newbie staff 4096 2008-12-19 12:39 Desktop 4 drwx------ 10 Newbie staff 4096 2009-04-16 02:28 Documents 4 drwx----...

Wamp and file permssions using windows

Apologies if already answered. None of the listed answers seemed satisfactory. I'm using WAMP to build a site (obviously windows). Folder for images needs permissions turned on so they appear on the site. Everytime I use "Properties" on the folder, it reverts back to read only. Altering things in the advanced toolbars and trying to make...

filesystem permissions while developing on different machines

Hi, I have installed a xampp (apache + mysql + php) stack on a portable volume (truecrypt volume on a usb drive) that I use on different linux machines, for webapp development. This volume is formatted in ext3, so I run into permissions problems as I can't be the same user on each machine. For example I tried to check the git status of...

How to recursively chmod on subdirectories?

I want to recursively chmod all of the subdirectories below my calcium directory: chmod a+wx calcium How do I change the above command to do this? I believe I'm using bash shell although I'm not sure how to verify this. ...

Creating executable files in Linux

Hi, I'm trying to progress from merely dabbling with Linux to actual full-blown use, but am still very much a novice, so please excuse this extremely basic question. One thing I plan to be doing is writing (painfully simple) Perl scripts, and I'd like to be able to run them without explicitly calling Perl from the terminal. I appreciate ...

How do i secure a web server's image upload directory ?

For my web application, people can upload images from a web form to my web server. What should I set the CHMOD settings for that image upload directory so that people can upload images (from the web server) to that directory but not execute any files they upload for security reasons. Would the chmod settings be? : chmod 744 directory/...

Unable to set chmod 640?

I just installed phpbb on my website. According to phpbb advice, I was suppose to set the config.php chmod to 640. In filezilla(my ftp program), I tried right-click the file, then select file permissions to 640, but it gives me this error: 500 'SITE CHMOD 640 config.php': command not understood How do i change the chmod? I am using win...

Unsure about correct permissions in running Ruby Scripts

I get the following alert when I run a Ruby script warning: Insecure world writable dir /Users/cs/Documents in PATH, mode 040777 The solution is to change the permissions. However, I am unsure which one is the appropriate one. I use many user accounts for different purposes. I have one main account by which I run the commands at my ...

PHP: Setting permissions so I can write a file?

I am trying to create a file with PHP here is my code: $file_to_send = 'ftp_test_from_created_file.txt'; chmod($file_to_send, 0777); $fh = fopen($file_to_send,'w'); $tsv_line = 'Hey\tThese\tAre\tTab\tSeperated\tValues'; fwrite($fh, $tsv_line); fwrite($fh, '\n'); $tsv_line = 'Hey\tThese\tAre\tToo'; fwrite($fh, $tsv_line); fclose($fh); ...

changing chmod for files but not directories

I need to use chmod to change all files recursivly to 664. I would like to skip the folders. I was thinking of doing something like this ls -lR | grep ^-r | chmod 664 This doesn't work, I'm assuming because I can't pipe into chmod Anyone know of an easy way to do this? Thanks ...

Need to change permissions on *nix system to 777

Have a folder and files as follows: Folder: drwxrwxrwx 3 me 153157 8 Aug 17 14:17 Nugget File within Nugget: ... -rw-rw-r-- 1 web web 24 Aug 17 14:17 nugget.php I need to change permissions on nugget.php to 777 as per the documentation. $ chmod 777 nugget.php chmod: nugget.php: Operation not permitted Suggestions? ...