Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: what is $uid and $gid?

by Abigail-II (Bishop)
on Apr 22, 2003 at 07:04 UTC ( #252209=note: print w/ replies, xml ) Need Help??


in reply to Re: what is $uid and $gid?
in thread what is $uid and $gid?

While there might be a chgrp command in your OS, Perl does not have a chgrp() function. Perl only has a chown() function, which is used to set both the user and the group id of a file. This is because many Perl functions mimic the C library, and not the programs from /usr/bin.

Also, there are 12 protection bits, not 9. You are forgetting the "set user id", "set group id" and the "sticky bit".

Abigail


Comment on Re: what is $uid and $gid?
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://252209]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (10)
As of 2014-12-19 11:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (78 votes), past polls