SUMMARY: chmod problem
From: Bhavesh Shah (bshah_at_citadon.com)
Date: 10/27/05
- Previous message: Bhavesh Shah: "chmod problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 27 Oct 2005 11:44:26 -0700 To: "Bhavesh Shah" <bshah@citadon.com>, <sunmanagers@sunmanagers.org>
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/sunmanagers
- Previous message: Bhavesh Shah: "chmod problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|