Welcome, Guest. Please login or register.

Author Topic: Any Unix-like aspect in AmigaOS?  (Read 6967 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Trev

  • Hero Member
  • *****
  • Join Date: May 2003
  • Posts: 1550
  • Country: 00
    • Show all replies
Re: Any Unix-like aspect in AmigaOS?
« on: May 27, 2009, 12:14:15 AM »
Quote from: marcfrick2112;456340

Both have more types of file protection bits than windows (I believe)


In Windows, securable objects--files, pipes, devices, processes, desktops, registry keys, et al--have a 32-bit access mask, so that's 4,294,967,296 possible "protection bits." ;-) They're not all implemented for most objects, of course, but a cruel and ruthless designer could implement them if they wanted.
 

Offline Trev

  • Hero Member
  • *****
  • Join Date: May 2003
  • Posts: 1550
  • Country: 00
    • Show all replies
Re: Any Unix-like aspect in AmigaOS?
« Reply #1 on: May 27, 2009, 05:41:24 AM »
Yeah, I think the short answer is that AmigaOS isn't very UNIX-like at all: there's no separation of kernel (privileged) and user (unprivileged) spaces, and there are clear differences between file and device I/O.
 

Offline Trev

  • Hero Member
  • *****
  • Join Date: May 2003
  • Posts: 1550
  • Country: 00
    • Show all replies
Re: Any Unix-like aspect in AmigaOS?
« Reply #2 on: May 27, 2009, 04:45:24 PM »
Quote from: tiffers;456456
Don't let the 32-bit field scare you. It's going to be no worse than remembering 32 different permissions at the most.

But that's so much less fun. ;-) In practice, the lower 16-bits of the Windows access mask are used as a bit field for object-specific rights, and the next 8 bits are used for standard rights: delete, read permissions, write permissions, write owner, and synchronize are implemented. So that's 21 possible permissions, 16 of them object-specific. File system objects use 9 of the 16 object-specific bits.

Windows also supports generic read, write, and execute permissions. You can emulate UNIX-style file system permissions (and do when using Services for UNIX or POSIX APIs) by setting an object's owner and group and assigning permissions to CREATOR OWNER, CREATOR GROUP, and Everyone. With Microsoft's NFS server, you can continue to use full discretionary access control lists as well, but only the owner, group, and everyone permissions will be reflected in UNIX directory listings.

Many UNIX variants provide some form of discretionary access control lists, but most administrators are loathe to implement them, despite the flexibility they provide.