OS2 World Community Forum

OS/2, eCS & ArcaOS - Technical => Applications => Topic started by: mauro on June 01, 2019, 07:42:30 pm

Title: how to change a directory permission level in OS2
Post by: mauro on June 01, 2019, 07:42:30 pm
from 0777 to 0775 ?
Same Unix command line?
Thank you
Title: Re: how to change a directory permission level in OS2
Post by: ivan 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?
Title: Re: how to change a directory permission level in OS2
Post by: Dave Yeo 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.
Title: Re: how to change a directory permission level in OS2
Post by: mauro 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