All Entries Tagged With: "permission"
Unpacking of archive failed
Issue :
Unzipping of an archive fails with the following error :
Updating : gzip 1/2
Error unpacking rpm package gzip-1.3.5-11.el5.centos.1.i386
error: unpacking of archive failed on file /bin/gunzip: cpio: rename
Failed:
gzip.i386 0:1.3.5-11.el5.centos.1
This is happening since the last cPanel update only.
Fix :
This might be a problem due to the attributes of the binary. Run the following command and [...]
How to resolve multiple problems due to permission issues
Sometimes, permissions might get screwed server wide resulting in various problems for different users.
Here are some steps to reset the permissions.
/scripts/checkbsdgroups — Checks and repairs proftpd ownership on FreeBSD.
/scripts/chownpublichtmls — Change ownership of all users web space to them, which is useful for converting to suexec. Files owned by nobody are deleted.
Then, login to WHM [...]
535 Incorrect authentication data
Error :
2008-08-02 11:18:23 fixed_login authenticator failed for (localhost) [127.0.0.1]:54412 I=[127.0.0.1]:25: 535 Incorrect authentication data
Permissions for /etc/passwd and /etcshadow are fine.
/scripts/eximup –force did not help either.
Solution :
There can be multiple reasons for this.
First, check whether the folder ‘etc’ located at /home/”username”/etc/ has the ownership username:mail . If not, then correct that.
chown username:mail /home/username/etc/ -R [...]
Changing multiple account ownerships via SSH
Issue:
How to change the ownership of multiple accounts under /home via SSH? The option in WHM is a bit tedious.
Solution :
To change the ownership of all accounts to the respective user.user :
cd /home
ls -al | grep root
for i in `ls /var/cpanel/users/`; do chown $i:$i /home/$i ; done
for i in `ls /var/cpanel/users/`; do chown [...]

