Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

I'm writing some tests of file ownership, which obviously are pointless if the system isn't a multi-user system. Is there a best way to determine if the system my thing is running on is in fact a multi-user system?

Thanks!
-Pileofrogs

Update: Thanks for your responses! I'll try to clarify my question:

  • This is actually more of an academic question than a practical question.
  • I'd like to avoid checking a great big list of OSs.
  • For this question, I'm defining multi-user as any environment in which the idea of file ownership is valid. So, maybe a more precise way of asking my question is, is there a 'best' way to determine if the system supports the idea of file ownership.

Another Update: Oh, and you can have Os's with multiple file systems, some of which do and some of which do not support the idea of file ownership.... Ugh...

I think I'd really like a command or set of commands that will succeed in on a system that supports the idea of file ownership and fail on a system that does not.

Yet Another Update: When I say, I'd like to avoid checking a big list of operating systems, I mean I'd like this to work on an OS I've never heard of. I'd like it to work on an OS that doesn't exist yet.


In reply to Is it multi-user? by pileofrogs

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-20 04:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found