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

mauro

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 2
  • Posts: 157
    • 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
  • *****
  • Thank You
  • -Given: 2
  • -Receive: 33
  • Posts: 926
    • 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
  • *****
  • Thank You
  • -Given: 10
  • -Receive: 138
  • Posts: 1980
    • 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

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 2
  • Posts: 157
    • 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 »