Author Topic: how to change a directory permission level in OS2  (Read 3162 times)

mauro

  • Sr. Member
  • ****
  • Posts: 408
  • Karma: +3/-0
    • View Profile
how to change a directory permission level in OS2
« on: June 01, 2019, 07:42:30 pm »
from 0777 to 0775 ?
Same Unix command line?
Thank you

ivan

  • Hero Member
  • *****
  • Posts: 1557
  • Karma: +17/-0
    • View Profile
Re: how to change a directory permission level in OS2
« Reply #1 on: June 01, 2019, 08:03:01 pm »
Sorry the unix structure does not apply in OS/2  we only have r h s a.

That being said , what are you trying to do?

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4787
  • Karma: +99/-1
    • View Profile
Re: how to change a directory permission level in OS2
« Reply #2 on: June 01, 2019, 08:42:46 pm »
from 0777 to 0775 ?
Same Unix command line?
Thank you

Same as on Unix, use chmod. Something like (untested)
Code: [Select]
chmod -R 0775 dir/
The -R will recurse through the subdirectory, remove if not needed.

mauro

  • Sr. Member
  • ****
  • Posts: 408
  • Karma: +3/-0
    • View Profile
Re: how to change a directory permission level in OS2
« Reply #3 on: June 02, 2019, 08:50:20 am »


Same as on Unix, use chmod. Something like (untested)
Code: [Select]
chmod -R 0775 dir/
The -R will recurse through the subdirectory, remove if not needed.

Right Dave, it worked with this command, thanks.

Ivan, I needed to change permissions in two folders due this answers at a OS2 command line:

invalid permissions on directory C:\MPTN\ETC/samba/private/msg.lock': has 0777 should be 0755
invalid permissions on directory C:\MPTN\ETC/samba/private/msg.sock': has 0777 should be 0700

still fighting with Samba implementation, installing from rpm package on OS2 Warp 4.52 is not enough, then I have to move/add myself some files and folders in C:\MPTN\ETC  to get it work
« Last Edit: June 02, 2019, 08:54:18 am by mauro »