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?
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.
Did anyone ever had an issue, when you click fetch accounts list and it displays 0 packages and 0 accounts? Even if there are hundreds of accounts in server.
I have a VPS hosting and have two IPs. Can I create multiple accounts using a shared IP in WHM?
I created but the page always showed failed
"Account Creation Status: failed (Your system has run out of avaiable ip addresses, or you do not have permission to use any more ip addresses. (Unable to find an ip address.) )"
I've just put all my own domains on their own server, away from my clients' domains.
I don't really want to go through 60 Cpanel accounts creating an email address for myself in each.
Is there a way to create a single pop account in each account? I seem to recall there's a way to change the default email address to fail: or blackhole: server-wide so I guess there'll be a way to create a mail account.
I am the IT Director for a Furniture Manufacturing Company. I would like to establish relationships with Web Hosting Professionals that can provide me with multiple hosting accounts. Each must be on a different subnet. They do not require dedicated IP's. These accounts will be used to back link to a master domain. I can assure you that there will be no spamming or other unscrupulous activity on these accounts. Our company has been in business since 1862. I welcome this community to give me feedback thoughts ideas etc..
We're managing a CMS script which we offer as a hosted solution / leased script. This means we have several accounts on our server, one pr. client/script user. They all run the same script software and occasionally we have to upgrade the script on these sites. Until now this is being done manually.
Connect with FTP -> upload new files -> Done.
This is very easy work but takes annoyingly much time due to FTP needing to set up connections, switching accounts, etc.. and if you have 100s or 1000s of accounts this becomes...yes...you know..
The question is now, how can this be done easier? I was hoping that it would be possible to do this automated somehow (we have root access to our server).
I just tried westhost. Very nice folks, good reviews, worth a shot. I signed up for a regular hosting account that allows multiple domains. That didn't work for email. An email user has access to email under that users name for all domains attached to the account. so you can't have info@abc.com, info@def.com, etc. One info@ per account. I did find a hack for it, but it wouldn't work with web mail.
So now I need to find a host that separates mail by domain WITH webmail.
This is getting so tiresome. I have a VPS with "the planet", but so many things just don't work out of the box. I've been fighting with them about PHP not sending mail for months. DNS problems everytime I setup a new domain. There has to be an easier way!
15 domains, everything needs to work. I don't want to manage anything. No resellers. The company I host with will own the data center.
Check /tmp ownershipWARNING/tmp should be owned by root:root the /tmp seems to be set to nobody:nobody Is it a Security Risk.? Other options are set fine on /tmp Check /tmp permissionsOK Check /tmp is mounted as a filesystemOK Check /tmp is mounted noexec,nosuidOK
Does anyone here know who owns Rackedge NL? Are they a member of this forum? I am having a real bad problem, that certainly defy's logic and reason and i can’t seem to get any replies from either member McRox or the Support team.
Rather than posting wildly around the net about them and this issue, I would prefer to first ensure this isn’t just a big misunderstanding, so any details anyone can offer on this.
There is only 3 people i have been in contact with in this company McRox (Member of this forum) Tony Deeman (Support) John de Groot (Sales)
I have it setup and have a user created that can upload files to my website.
The problem that I am running in to is that the files that this user uploads are owned by him not the cpanel website user. Thus when I try to view the page in my browser I get a server 500 error since the site is set to only serve up pages that are owned by the cpanel website user.
When using FTP in the same way we did not have this problem as the file that was uploaded would automatically be owned by the cpanel website user.
i got a unmanaged vps and i do not know why i often see folders and files ownership belonging to apache instead of myself and i have to manually reset ownership via directadmin file manager or ssh in to do it....can anyone advise me how to fix this problem as in anything i can do to stop all these apache ownership problem...
Another thing about directadmin, i select all folders and files at once trying to reset ownership but i always get an error and have to reset ownership one by one wasting time....
One of my customers wants me to change the ownership to nobody and group to apache in a directory created in the home directory of his website. I want to know whether doing so will pose any security problem. Also is there any advantage of changing the owner to nobody and group to apache?
I have been battling this for a while. A user will setup a CMS like joomla, e107, etc and every time the CMS changes files either with user interaction on the website or the admin changing things in their cms admin web page, apache takes ownership of the files.
I have tried installing suPHP, FastCGI, and most recently suexec. I am not having any luck with this. I really don't know what I am doing with these recent additions but meanly going on suggestions. Does anyone know of a walk through to fix this permission problem? Anyone with some good advise? Surely not everyone is having to write a script to chown each user's dir and run a cronjob every 5 minutes.
Due to a typo at the comand line as Root, ive manages to change the owner ship of unknown mounts of files.
The command that was processed (Before it was complete)
chown -R reseller:reseller /
I managed to stop the process ctr+c and these were the last files to see fly past. The last one in the list is where it stopped at.
Code: chown: changing ownership of `/proc/11566/task/11566': Operation not permitted chown: changing ownership of `/proc/11566/task/11566/fd/0': No such device or address chown: changing ownership of `/proc/11566/fd/0': No such device or address chown: changing ownership of `/proc/11572': Operation not permitted chown: changing ownership of `/proc/11572/task/11572': Operation not permitted chown: changing ownership of `/proc/11572/task/11572/fd/4': No such file or directory chown: changing ownership of `/proc/11572/task/11572/cwd': Operation not permitted chown: changing ownership of `/proc/11572/fd/4': No such file or directory chown: changing ownership of `/proc/11572/cwd': Operation not permitted chown: changing ownership of `/etc/X11/X': No such file or directory chown: changing ownership of `/dev/core': Operation not permitted chown: changing ownership of `/usr/local/include/libpng/libpng12':
Too many levels of symbolic links
At the moment the server is still running and it seems only to be log in issues with Direct admin. All user / reseller / Admin accounts can no longer log in.
Error after logging in : Unable to determine Usertype user.conf needs to be repaired No images or nothing
When I have checked the 'Current CPU Usage' in root WHM there was a stranger IP with root ownership and command: whostmgrd - serving xxx.xxx.xxx.xxx
Also there was my IP with this ownership and command, like every time I am viewing the WHM.
I have blocked this IP with apf immediately, and the root password is changed.
Does it mean someone was in root WHM?
I have a dedicated server with cpanel on centos 4.6 / chkrootkit and rkhunter / all of server's softwares are up to date / compilers disabled for users / php open base dir is enabled and my users do not have SSH access.
am having some issues with cpanel's password changing. password of a user changes fine from shell, changes fine from WHM. however no luck in the user's cpanel.
error i get is:
Quote:
There was an error manipulating the password file. This generally means you entered your old password incorrectly. The following services were updatedif any)
Changing password for user xxxxxxx. Changing password for xxxxxxx (current) UNIX password: passwd: Authentication token manipulation error
i'm looking into this user's directory, and oddly see that the /etc/<domain>/passwd and shadow and quota files are all 0 bytes. but i can log in with the password i set from whm.
permissions on these 3 files are -rw-r--r-- which seems normal, plus ownership is <username>-mail.
Like, when you create an account, the clients cPanel says: [url](on the top).
I was wondering, any way to change that..not for a single account but all of them..kinda so when it creates a account it actually puts a different image.