This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Mackan90096's profile picture

[Request] Custom OS

Started by Mackan90096, 25 March 2015 - 07:22 PM
Mackan90096 #1
Posted 25 March 2015 - 08:22 PM
Hi! I am writing this because I've been trying to do this forever now, but it's never worked and I'm tired of it.
So, I'm hosting a private server for me and my friends to learn eachother stuff using ComputerCraft.

What I want is a "restricted" OS.

What I mean by this is that I only want certain users to be able to use certain programs and shell methods.
For example, I want everyone to be able to move around and stuff in their own Home directory, but not be able to move out of it, while I want admins to be able to move around freely and do everything.

I'd like the code to be stored on a drive as I've connected every computer in the network to it.

The list of shell commands I want the users to be able to use is as follows:
  • adventure
  • alias (List the commands, not be able to make new ones)
  • apis (List the apis and help about them)
  • cd (Inside the users home directory)
  • clear
  • copy (Inside their home dir)
  • delete (Inside their home dir)
  • edit (Inside their home dir)
  • hello
  • help (List all the help stuff)
  • id (Get the id of the current computer)
  • move (Inside the users home dir)
  • paint (With files inside their home dir)
  • pastebin (get/put in their home dir)
  • programs (List the programs available to the user)
  • redirection
  • rename (Inside the users home dir)
  • time
  • type (Inside their home dir)
  • worm

As stated above, I want the admins to be able to do anything.

Thanks for help and interest.

- Mackan90096
InDieTasten #2
Posted 25 March 2015 - 08:29 PM
I would assume this belongs to Ask A Pro rather than the Programs section ;)/>
Mackan90096 #3
Posted 25 March 2015 - 08:30 PM
I would assume this belongs to Ask A Pro rather than the Programs section ;)/>

Yeah, altough I figured it would be more fitting here since it's a request for a Program :P/>
InDieTasten #4
Posted 25 March 2015 - 08:36 PM
You should read yourself in into environments. There should be plenty for lua and some specific to computercraft here in the forums. That way you can restrict programs abilities and by writing a custom shell(or an easy modification to the default one) you can change the what programs are allowed to be executed.

I'm not quite sure though, how you are planning to implement your "admin" access, since computers can't detect the player who's accessing it without further sensors provided by external mods

I would assume this belongs to Ask A Pro rather than the Programs section ;)/>

Yeah, altough I figured it would be more fitting here since it's a request for a Program :P/>
I don't know your history here on the forums, but if you need help with a program or section of a program, you can "ask a pro" about it. What you are writing is some sort of "job" for others to do for you for free? I don't think people will start to program like 2+ hours on a program, that is otherwise(in the most cases) useless to them
Mackan90096 #5
Posted 25 March 2015 - 08:36 PM
I was planning of having some sort of a login system with usernames and passwords.
Geforce Fan #6
Posted 25 March 2015 - 08:37 PM
I'm creating an OS right now that has file & folder permissions(stored in metadata). You could set all folders but "home" to read-only for guests, or even no-read no-write, then create them a guest account.
Administrators can modify metadata, so there's no use restricting them from files.
It doesn't do much right now, but
https://github.com/AI221/-os-
or to install:
pastebin run 6JU1nY50 5 update
It's still really WIP though, I'm not sure if the github version is up-to-date
It really sounds like you want exactly what my OS does.
On boot up, it really doesn't seem like it's much, but if you do "dir all" you'll see .meta. This is where things like permissions, last access, symbolic links(not implemented yet) are stored.
There will also soon be meta for folders themselves.
Edited on 25 March 2015 - 07:44 PM
Mackan90096 #7
Posted 25 March 2015 - 09:05 PM
Spoiler
I'm creating an OS right now that has file & folder permissions(stored in metadata). You could set all folders but "home" to read-only for guests, or even no-read no-write, then create them a guest account.
Administrators can modify metadata, so there's no use restricting them from files.
It doesn't do much right now, but
https://github.com/AI221/-os-
or to install:
pastebin run 6JU1nY50 5 update
It's still really WIP though, I'm not sure if the github version is up-to-date
It really sounds like you want exactly what my OS does.
On boot up, it really doesn't seem like it's much, but if you do "dir all" you'll see .meta. This is where things like permissions, last access, symbolic links(not implemented yet) are stored.
There will also soon be meta for folders themselves.

Ah yes! After playing around with this a bit, I can say this is what I wanted! I look forward what it can produce in the future!
Geforce Fan #8
Posted 25 March 2015 - 09:13 PM
Spoiler
I'm creating an OS right now that has file & folder permissions(stored in metadata). You could set all folders but "home" to read-only for guests, or even no-read no-write, then create them a guest account.
Administrators can modify metadata, so there's no use restricting them from files.
It doesn't do much right now, but
https://github.com/AI221/-os-
or to install:
pastebin run 6JU1nY50 5 update
It's still really WIP though, I'm not sure if the github version is up-to-date
It really sounds like you want exactly what my OS does.
On boot up, it really doesn't seem like it's much, but if you do "dir all" you'll see .meta. This is where things like permissions, last access, symbolic links(not implemented yet) are stored.
There will also soon be meta for folders themselves.

Ah yes! After playing around with this a bit, I can say this is what I wanted! I look forward what it can produce in the future!
Great! I'm working on it right now. I've mostly been working on getting the GUI working, but I could try to get folder metadata and a metadata editor(medit?) working
Edited on 25 March 2015 - 08:14 PM
Lyqyd #9
Posted 25 March 2015 - 10:30 PM
Moved to General.
DannySMc #10
Posted 26 March 2015 - 10:47 AM
Spoiler
I'm creating an OS right now that has file & folder permissions(stored in metadata). You could set all folders but "home" to read-only for guests, or even no-read no-write, then create them a guest account.
Administrators can modify metadata, so there's no use restricting them from files.
It doesn't do much right now, but
https://github.com/AI221/-os-
or to install:
pastebin run 6JU1nY50 5 update
It's still really WIP though, I'm not sure if the github version is up-to-date
It really sounds like you want exactly what my OS does.
On boot up, it really doesn't seem like it's much, but if you do "dir all" you'll see .meta. This is where things like permissions, last access, symbolic links(not implemented yet) are stored.
There will also soon be meta for folders themselves.

Ah yes! After playing around with this a bit, I can say this is what I wanted! I look forward what it can produce in the future!
Great! I'm working on it right now. I've mostly been working on getting the GUI working, but I could try to get folder metadata and a metadata editor(medit?) working

That's a good idea actually, as it also helps with the whole user files, like any OS, nice one! Can't wait to see the finished version! :D/>