I am having difficulties figuring out why certain things are much more complicated on a mac terminal than a standard linux shell..
Say I have two local accounts, one administrator called "adm" and a standard user "usracc" and I want to be able to update the
locate database with
updatedb command. I need to simply run
sudo updatedb, except usracc is not in the sudoers list.
Ok, I say and
su adm then
sudo updatedb which tells me that
updatedb command is not found. So to recap:
my regular user account is not on the sudoers list (this is actually intentional, as I dont want to compromise the system if the password for this account is compromised).
my admin account can sudo but apparently not that particular command, which cannot be found for whatever reason.
suto my admin account I see;
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission deniedwhich gets repeated everytime I try to get content assist with the tab key..
so with the root account disabled, apple sort of forces you to give sudo privilages to user accounts to be able to do simple stuff, how exactly does that help with security? Or have I completely misunderstood something here?