SUMMARY: chmod problem

From: Bhavesh Shah (bshah_at_citadon.com)
Date: 10/27/05

  • Next message: Dave Martini: "Can't delete printer"
    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


  • Next message: Dave Martini: "Can't delete printer"

    Relevant Pages

    • Re: Downloading a CSV file from a web site using Access
      ... You can use code like this to implement FTP in Access: ... "John" wrote in message ... > and import a CSV file stored there. ... > indicating that I didn't have permission to read the file. ...
      (microsoft.public.access.externaldata)
    • Re: sales@mrpinball.com.au Warning letter about doing backglass with direct ink.
      ... So I scan the Mona Lisa with a scanner and ... gets permission from the rightful owners of artwork that they may ... artwork would be more willing to work with John, ...
      (rec.games.pinball)
    • Re: [SLE] Nobody is home in Samba [Solved]
      ... The owner, group and world permissions are each defined by ... So chmod 0660 filename sets the file permission of filename to ... Similarly chmod 0750 filename sets the file permission of filename to ...
      (SuSE)
    • Re: Additional Restrictions - option
      ... you should run filemon on the ftp server. ... >>the 'some other users' have some permission and rights> issue. ... >>> bimoseekin ...
      (microsoft.public.inetserver.iis.security)
    • RE: FTP Permissions
      ... Since you've mentioned, you've given full permission to "Everyone", I assume ... in the FTP adapter configuration page ... The Everyone group represents everyone known to the Web server (FTP Server ... If I attempt to place a file into another FTP folder in a SendPort, ...
      (microsoft.public.biztalk.general)