Changing Multiple File Permission

Apr 2, 2007

in my server there is an issue where a lot of users simply chmod their directories to 0777 and its not easy for me to modified them back or ask them to change it back.

so anyone knows how can i search server via ssh to grep folder with permission 0777 and then automatically chmod these folders to 0755 ?

i think its possible to complete the above task with 1 command but not sure how.

View 2 Replies


ADVERTISEMENT

Changing File Permission

Feb 25, 2009

i've set all folders,sub folder and files under this folder to be 777 since it is a folder for my users to upload attachments~

however this is the problem. users all failed to upload because the permission of the new folder created by apache for the users to store their attachment are set to 755, which i wanted them to be 777. (those 777 folders were from old server.)

if u take a look at the pic attached , you know what i meant. does anyone have any idea of how i can change the permission for this whole foder to be 777 even with folder created by apache?

i tried chmod -r 777 attachment, but it says operation not permitted @@

View 9 Replies View Related

Changing Permission For All Files Within Directory

Dec 7, 2007

What is the command to change the permissions for all files contained within the same directory? I have about 100k files

located here:
/mysite.com/files/

I need to chmod all files located within the /files/ directory to 666.

What is the command for this via ssh?

View 8 Replies View Related

Changing Ownership Of Multiple Accounts In CPanel Using SSH

Nov 7, 2009

I have to mass change the ownership of accounts and I find "Change Owner of Multiple Accounts" tedious.

I found a bash script but I'm not sure if this works

Quote:

#!/bin/bash
IFS="$"

cd /var/cpanel/users

if [ $# = 2 ]; then
replace "OWNER=${1}" "OWNER=${2}" -- /var/cpanel/users/*
else
echo "USAGE: ./${0} <old reseller login> <new reseller login>"
fi

If that works, how can I tweak it so that the change in ownership of accounts will be based in the hosting package and not in the old reseller account?

View 3 Replies View Related

File Permission On FreeBSD

Jan 6, 2008

I have problem with a file permission on FreeBSD.

The permission of that file is 0000, so I tried to change that
permission using chmod command. However, I got the following error:

chmod: file.php: Operation not permitted

I know that I have to check for file attributes. In redhat I used to
check that using lsattr command. However, I couldn't find it anywhere in FreeBSD.

Anyone here aware of an equivalent command that check file attributes?

View 5 Replies View Related

Document Root And File Permission

Jul 21, 2008

I am running a LAMP server, working to get everything configured and as secure as I can make it. I have been trying to decide weather to change the document root to a different directory, or if it would be better/worse or more/less secure to chown and chmod the current directory.

Any input would be helpful, I just don't want to overlook some small detail as this is my first time handling a server on my own.

View 2 Replies View Related

Apache :: How To Change Bulk File Permission From All Folder

Sep 14, 2013

Recently I moved my WordPress website to another server, After moving my site I see that my all files permission set to 664, for that I getting many error, now I want change all files permission 644, but problem is I have many subdomain with this site, is there any way to make change all files permission to 644 with SSH or any other way?

View 1 Replies View Related

Plesk 12.x / Linux :: File Permission And Backup Manager

May 27, 2015

I lately decide to change my server provided and I decided to go for pre-installed Plesk12 service , plesk installed with os installation and in the beginning was looking ok , till I faced two problems .

The first problem I found is on Backup manager , I set a daily backup with maximum of 5 but every day I receive the error :The backup backup_website.com_info_1505272137.xml and backup_website.com_info_1505262137.xml was not created , I check the current backup task and the two task shows fails.(picture attached)

The second problem I found It may be related , is concerning the File permission , the user root and on group root are not able to change any file permission but the user pinco on group root is able to change it as well as the user Pinco on group psacln/psaserv , I updated the plesk12 to latest release to see if maybe was some changes but unfortunately nothing

Not migration for domains and was fresh install for os and plesk12

Plesk version:12.0.18 Update #48
OS: CentOS 6.2 (Final)

View 7 Replies View Related

Mod_rewrite - Changing Paths In The Php File?

Mar 22, 2007

I am using mod_rewrite to create "pretty" urls but some of my files contain paths such as this:

<img src="images/blah.jpg"> Meaning if the user visits a page where the file does not physically exist then it won't work.

I want to know if it is possible to pick this up and rewrite the path. I.e.:

change: <img src="images/blah.jpg">
to: <img src="../images/blah.jpg">

or
<img src="../../images/blah.jpg">

As I don't want to create physical files with relative urls for every trunk of my url. For example:

www.mydomain.com/directory/directory/directory/

Would need 3 different files in three different directories to display properly.

View 0 Replies View Related

Plesk 12.x / Linux :: WordPress - Changing PHP File That Is Installed Directly To Root?

Oct 27, 2014

I have a file that creates subscriptions , customers and domains. moreover, also installed wordpress to new domain. it makes it through the php file .

The problem I have is that when installing wordpress on plesk domain is installed in a subdirectory called wordpress in the root directory instead .

Is there any way of changing the php file that is installed directly to root ?

Ask this because from the plesk panel is done, there is an option through the file but can not.

View 2 Replies View Related

File Storage For Multiple Web Servers

Nov 5, 2009

What's the best setup for me to have for a machine which will host web files that other servers have to read and serve to end users on the web?

For example, I have servers Web1 and Web2 serving the same content from Files1.

I assume it's best just to go with RAID 10 and be safe or?

More importantly for me, what's the best way for these systems to communicate? I.e.

what protocol should be used for the web servers to read the files from the file server?

I once used SSHFS for serving the same static files on a couple of machines from one location... but that's presumabely very slow (at the time wasn't a problem).

All systems will be running CentOS Linux.

View 6 Replies View Related

Multiple Server File Distribution

Sep 21, 2007

We're running multiple cPanel-based Linux boxes now, and are looking for a simple way to distribute our basic system files across all boxes. No important low-level files, just the basic cron job bash scripts we run on all servers etc. This would also be a help for syncing these shared files across to new boxes we bring online.

Does anybody have any recommendations for a simple file distribution system for this purpose? Ideally it would run as a cron job rsyncing the files across.

It may just be easier for us to write our own script for the purpose, but thought I should ask if there was anything off the shelf

View 2 Replies View Related

Copying A File To Multiple Users Dir

Sep 25, 2007

I've been searching for the best way to copy a file, say .htaccess, to multiple users dir, tried "cp -f .htaccess /home/*/public_html" but received an error "omitting dir /home...."

View 3 Replies View Related

Possible For Multiple Sites On Same Server To "share" One .htpasswd File

May 3, 2007

the subject pretty much sums it up, is there a method or solution for multiple websites (whic reside on the same dedicated server) to share just one .htpasswd, or automate the mirroring of said .htpasswd file?

if so any suggestions for methodology or products that would facilitate this action would be most welcome, thx in advance friends..!

View 10 Replies View Related

Plesk 12.x / Linux :: Deny User Upload File Via File Manager Or Hidden File Tab?

Feb 10, 2015

I'm build Plesk Panel for Linux and Presence Builder, I don't want my user can upload their website to hosting via File Manager. How can I do it...

View 2 Replies View Related

Plesk 11.x / Linux :: Multiple Email Certificates For Multiple Domains?

Nov 11, 2014

I have two domains as virtual hosts on same IP address.

I am getting certificate error for the second domain when I try to check email (using MS Outlook). I can't permanently "accept" certificate, it complains again and again. Certuficate I created and self signed for imap.domain1.com, but the second email server is imap.domain2.com, so it complains.

How do I set separate email certificates for two domains? Is it possible at all?

View 5 Replies View Related

Apache :: Multiple Error Codes For Multiple Pages

Nov 9, 2012

Depending on where u are at on my site (documents pages, training, main root, etc.) will depend on which type of background, footer, header and the like you'll get. Now I was thinking. Is there a way to have multiple error messages for more then one page depending on where you are at on a site? Right now it's intranet site and a modded snitz forum. What is the code and were does it go and in which apache conf file(s) does it go in?

View 1 Replies View Related

1.com/file.php, 2.com/file.php Where File.php Is Hosted On Main.com/file.php

May 26, 2008

Say I have 2 websites and they all use file.php which is located on mainserver.com/file.php.

I want to use the file like this:
website1.com/file.php
website2.com/file.php

View 2 Replies View Related

Permission 777

Jun 20, 2007

How can I stop Permission 777 in the server So no one can set Permission 777 to any file in the server?

View 2 Replies View Related

FTP Permission

Nov 10, 2007

I have UnZipped a File Via SSH.

Now, When i Upload anything via FTP them i get a 550 Permission Error.

Any idea what is the problem actually and how to resolve it?

View 11 Replies View Related

Crontab Permission

Mar 24, 2008

I have problem to change the /usr/bin/crontab permission to 4755 it still remain 0755 ...

View 5 Replies View Related

Folder With 777 Permission

Oct 29, 2009

i install joomla on my server but need 777 permission.

can anyone give me to advice for best resolution security for 777 permission?

View 6 Replies View Related

Permission 777 For Bin/sh , Should I Change It

Nov 19, 2008

The permission of bin/sh in my Plesk + Linux system is 777 , is it necessary to change? If so , what is the potential danger and to what permission state it must be changed?

View 10 Replies View Related

755 Permission :: Is This Safe?

Feb 15, 2008

Most of my files are 755 as permission. Is this safe?

How about putting all files under 644 permission? What is the best permission so that all files are safe from intrusion?

View 8 Replies View Related

Servint Vps Permission

Feb 24, 2008

I just move a site from resellerzoom to a servint vps..

I have been facing some strange problems..

the first problem was smarty..

Fatal error: Smarty error: unable to write to $cache_dir Be sure $cache_dir is writable by the web server user. Smarty.class.php on line 1095

i had to make he cache dir 777 inorder to fix the error..

it used to work with 755 before..

next up was the owner problem ..

the owner of the domain under whm was still pointing to the old resellerzoom accountname .. i changed it to root..

now i ran a chown command on root of the site .. still wordpress gives me error for image upload..

View 1 Replies View Related

550 Permission Error

Jul 19, 2008

After using the mv in SSH to move my forums to another domain. When I try to edit anything in the forum folder using FTP I get 550 Permission Error.

View 3 Replies View Related

Cpanel Permission

Nov 11, 2008

I have a problem with cpanel permision and joomla 1.5. In case, I install something likes templates from joomla backend, and then I try for modifying it from cpanel file manager, I got error that FileOp Failure on: "path to edit here" Permission denied

View 11 Replies View Related

Permission To Access

Jul 19, 2007

I have a form on a page hosted by earthlink. It processes from another host, and for some reason i am now getting this error:

You don't have permission to access /sendeail.php on this server.

Apache/1.3.37 Ben-SSL/1.57 Server at xxx Port 80

View 4 Replies View Related

Permission To Access

Jul 3, 2007

You don't have permission to access /home/index.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache/1.3.37 Server at www.domainabc.us Port 80

Sometimes when i access my page it shows this error but it does not happen frequently.

I am using Cpanel 11 and PHP 4.4.7

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved