I got lots of responses. May Thanks to Scott, Andrew, John and Chamkura. Sepcial thanks to John Benjamins as his solution worked great without any copy, ftp or CD. Scott ------- You can always boot from cdrom and change it. Andrew Hall ------------ scp a copy of chmod from another server to /tmp/ /tmp/chmod 755 /bin/chmod /bin/chmod 755 test1 rm /tmp/chmod John Benjamins ------------------ As root, do something like this: cd /tmp mkdir bin cd bin (umask 000 ; cp -p /bin/ls mychmod ) (umask 000 ; cp /bin/chmod mychmod ) ./mychmod +x /bin/chmod Chamkura --------- Tar it and ftp to another box. Change the permission and ftp back as tar. As root, do something like this: cd /tmp mkdir bin cd bin (umask 000 ; cp -p /bin/ls mychmod ) (umask 000 ; cp /bin/chmod mychmod ) ./mychmod +x /bin/chmod Thanks a lot. B My Original Question was: Hi Gurus, I had a problem with chmod on Solaris 2.6. When I try to assign permission with chmod it says permission denied. When I checked the permission on chmod itself it doesn't have execute permission. This was kind of surprising how chmod itself doesn't have execute permission. Now I can't assign any permission on that box. Unfortunately this is the only Solaris 2.6 box so I can't even copy from other Server. Any help is greatly appreciated. I will summarize. Regards B bash-2.03# ls -l /usr/bin/chmod -r--r--r-- 1 root bin 18236 Jan 5 2000 /usr/bin/chmod bash-2.03# ls -l test1 -rw-r--r-- 1 root other 0 Oct 27 10:43 test1 bash-2.03# chmod 755 test1 bash: /bin/chmod: Permission denied bash-2.03# . /usr/bin/chmod 755 test1 bash: .: /usr/bin/chmod: cannot execute binary file _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagers _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagersReceived on Thu Oct 27 14:44:55 2005
This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:52 EST