How can I set the "directory" bit in unix permissions -


i did a:

chmod 7777 mydata 

on mydata directory. no-longer recognised unix (cygwin actually) directory:

-rwxrwxrwx+ 1 administrators domain users  63 apr  4 10:19 mydata 

how can set first character being "d"?

you can't. d isn't permission, it's attribute. you'll see '-' or 'd' you'll see selection of others if browse /dev. i'm bit surprised you've managed turn directory file in way. entirely sure mydata directory start off with? of 4 modes you've set, should have got file (or directory!) with:

  • user/group/other read/write/execute
  • setgid, setuid, , 'sticky' bit set.

chmod shouldn't able turn directory flat file, unless you've found really strange bug.


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -