Date: Sat, 15 Jan 2000 11:14:36 -0800 From: Kent Stewart <kstewart@3-cities.com> To: Mikhail Evstiounin <evstiounin@adelphia.net> Cc: Alfred Perlstein <bright@wintelcom.net>, James A Wilde <james.wilde@telia.com>, freebsd-questions@FreeBSD.ORG Subject: Re: chmod command doesn't work was: chmod: invalid file mode: 04711 Message-ID: <3880C71C.422A1ED9@3-cities.com> References: <006401bf5f72$8fac2fc0$d0353018@evstiouninadelphia.net.pit.adelphia.net>
next in thread | previous in thread | raw e-mail | index | archive | help
It wouldn't surprise me if "test" was being replaced with "[". I would use a better name than "test", which has a special meaning to the shell. Kent Mikhail Evstiounin wrote: > > Before we proceed there, I'd like to know if your chmod is the real one - > what I mean if you running executable from the right place and there is > no alias in your shell. In some shells you can use "type" command > type chmod > which is alias, if my memory servers me right, to where command (or > whence? - too > many Unixes). > > -----Original Message----- > From: Alfred Perlstein <bright@wintelcom.net> > To: James A Wilde <james.wilde@telia.com> > Cc: freebsd-questions@FreeBSD.ORG <freebsd-questions@FreeBSD.ORG> > Date: Saturday, January 15, 2000 6:46 AM > Subject: Re: chmod command doesn't work was: chmod: invalid file mode: 04711 > > >* James A Wilde <james.wilde@telia.com> [000115 03:39] wrote: > >> Sorry to harp but I've been experimenting a bit with this. I had an idea > at > >> the back of my mind that I had seen similar behaviour before. > >> > >> The chmod command does not appear to work at all on this machine. I have > >> gone in as root on the console and typed the following: > >> > >> mkdir test > >> chown james test > >> chmod 04711 test > >> chmod 4711 test > >> chmod 711 test > >> chown root test > >> chmod 04711 test > >> chmod 4711 test > >> chmod 711 test > >> chmod 644 test > >> > >> I used 644 in the last case since this is the example in 'man chmod'. > >> > >> In every case of the chmod command I get: > >> > >> 'chmod: invalid file mode: nnnnn' - where nnnnn is the 3-5 digit number > I > >> have listed above. > >> > >> So my problem is not with installing ssh2 but with the chmod command. > Does > >> anyone have any suggestions? > > > >have a look at or share with us the output of 'truss' or 'ktrace' on > >the chmod, or run it the debugger. > > > >-Alfred > > > > > >To Unsubscribe: send mail to majordomo@FreeBSD.org > >with "unsubscribe freebsd-questions" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- Kent Stewart Richland, WA mailto:kstewart@3-cities.com http://www.3-cities.com/~kstewart/index.html FreeBSD News http://daily.daemonnews.org/ SETI(Search for Extraterrestrial Intelligence) @ HOME http://setiathome.ssl.berkeley.edu/ Hunting Archibald Stewart, b 1802 in Ballymena, Antrim Co., NIR http://www.3-cities.com/~kstewart/genealogy/archibald_stewart.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3880C71C.422A1ED9>