[erlang-questions] where is os:getuid() ?

Michael Santos michael.santos@REDACTED
Fri Nov 27 17:10:48 CET 2015


On Fri, Nov 27, 2015 at 12:46:21AM -0800, derek wrote:
> On Thu, Nov 26, 2015 at 6:20 PM, Mark Steele <mark@REDACTED> wrote:
> > Happened across a post to the mailing list regarding getuid.
> >
> > Just added it here:
> >
> > https://github.com/marksteele/passwderl
> 
> Thanks and that's nice to have!
> 
> While has anyone tried to make it available into Erlang os module ?
> once we have os:getuid/0, then someone might want chown, chmod, ...;

These are in the file module: file:change_owner/2,3, file:write_file_info/2,3

> Even though windows don't have it, why not make it OS specific like
> the Python os module?
> 
> https://docs.python.org/3/library/os.html#os.chown
> 
> Availability: Unix.
> 
> >
> > Add it to your rebar config, and you're good to go.
> >
> > Cheers,
> >
> >
> > Mark Steele
> > CISSP, GPEN, GCIA, CSM
> > (647) 677-4064
> > mark@REDACTED
> >
> > LinkedIn: https://ca.linkedin.com/in/markrsteele
> > Github: https://github.com/marksteele
> > Personal: http://www.control-alt-del.org
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions



More information about the erlang-questions mailing list