Closed OcelotWalrus closed 4 months ago
Check commit 3b4c030, I've added the useradd command.
@Monarchz3ro , I've a request: should I add this line of code, so there isn't pycache folders generating anymore? It's kinda weird and annoying that pycache stuff get generated in the root folder.
import sys
sys.dont_write_bytecode = True
I'd rather not do that, because the cache is generated for a reason and speeds up the system, so I'd rather make the mockup simply ignore those files instead of not write them at all
I've added the passwd and userdel command! I've tested them in every case, but feel free to test them yourself!
The PR is ready for review @Monarchz3ro !
Apologies, I've been busy with a few other aspects of the game (such as story and graphics), but I'll look at your PR
Mismatch: passwd.py
has the help text for userdel
Apologies, I've been busy with a few other aspects of the game (such as story and graphics), but I'll look at your PR
No worries.
Mismatch:
passwd.py
has the help text foruserdel
I'll change that soon.
just fixed @Monarchz3ro!
Summary
This PR adds some fixes:
ecosystem.json
file permissions and ownershipsself.is_dir()
function, which had some weird bug$
becomes a#
--h
argument that returns a help pageself.filesystem
varself.__filesystem
This PR also adds some new systems:
This PR adds new commands and new os/script functions:
useradd
commanduserdel
commandpasswd
commandself.__pathos_bus_is_root()
# return a boolean that tells if the user is authenticated as rootself.__pathos_bus_entry_exists()
# check if an entry atregistry.json
existsself.__pathos_bus_add_entry()
# add a new entry to theregistry.json
self.__pathos_bus_change_passwd()
# change the password of aregistry.json
entryself.__pathos_bus_remove_entry()
# remove an entry to theregistry.json
self.get_working_entry()
# return the current user and groupself.add_user_entry()
# script method to check if the user can add an entry toregistry.json
self.remove_user_entry()
# script method to check if the user can remove an entry toregistry.json
self.change_password()
# script method to check if the user can change the password an entry atregistry.json