Re: rmdir and chmod - I don't agree with you Steven!!!

From: Daniel (daniel_at_dlpage.com)
Date: 10/11/03


Date: Sat, 11 Oct 2003 16:57:40 +0200

Chmod *should not* work, but it does somthing (I have no problems after
desactivating it), and rmdir has been a DOS command since MS-DOS v2 -
It's better known alias in the DOS world is "rd" (just as md & mkdir and
cd & chdir all work on your DOS and Windows command lines...)

As I mentionned, as soon as I commented out the chdir 777 on the
directory that I made with the script x, script y could delete it. When
I uncomment the chdir instruction and re-executed the script x, the
directory delete with script y gives me permission denied messages...

If you want, I can post code...

- Daniel (Who is still confused... :-)

Steven Musumeche wrote:
> chmod and rmdir are UNIX commands which have no effect in a Windows
> environment.
>
> -Steve
>
> "Daniel" <daniel@dlpage.com> wrote in message
> news:3f87dfee$0$8974$79c14f64@nan-newsreader-03.noos.net...
>
>>Hi,
>>
>> From what I read from the PHP manual, chmod on a Windows platform
>>should have no effect, and that seems totally normal (unless someone on
>>sourceforge has a windows port of that!).
>>
>>I create a directory on my Windows box, and set chmod 777 on it (that
>>should be full access for everyone if my memory serves me correctly),
>>but when I want to rmdir that directory, I get a permission denied
>>message (I can delete contents from that directory with no problems, and
>>I can create/delete subdirectories either by hand or by script with no
>>problems.
>>
>>I tried creating a subdirectory with the same name and without the chmod
>>in a test script and everything went OK...
>>
>>I then commented out the chmod line in my script, and now, directory
>>creation and delete works fine!
>>
>>So, for PHP on windows (xp home?), chmod 777 makes the file undeletable
>>for another PHP script, but not for Windows explorer or the windows/dos
>>command line...?!?!
>>
>>Anyone got an explanation for this? I'm intrigued!
>>
>>Cheers,
>>Daniel
>>
>
>
>



Relevant Pages

  • Re: [opensuse] Installation methods
    ... >> Regards, Rajko. ... I downloaded a script yesterday. ... So I should have ran "chmod 777 ... I also ran the chmod command for yet another program I was attempting to ...
    (SuSE)
  • Re: Hard to believe but...
    ... I wonder if there is a help command on individual command (i.e., ... under DOS 6.0 or later). ... Windows platform which I've been using for decades. ... chmod 777 is your friend. ...
    (rec.games.computer.ultima.dragons)
  • Re: CRON Script not working right.
    ... Change the lines to include the full paths for chown and chmod. ... Here's the gist of the script: ... When I run it from the command line as root it works fine as ... MailScanner thanks transtec Computers for their support. ...
    (freebsd-questions)
  • Re: Python executable
    ... Python scripts can be made directly ... >of the script and giving the file an executable mode. ... >$ chmod +x myscript.py ... >but I was given the bash: helloworld.py: command not found error. ...
    (comp.lang.python)
  • Re: [opensuse] Re: /bin/chmod: Argument list too long - how long is too long?
    ... I was trying to use chmod, ... The script I was playing with was one that let me set the directory ... one short command instead of 2 long find commands and a chown. ... permissions or ownership so this was a simple way to fix them. ...
    (SuSE)