Q: Help Clarifying Terminal Questions?
Hi,
I am learning how to navigate terminal so that I can gain and exercise greater control over my computers at home. I am very new, just started learning things about 3 days ago. I've noticed several things that seem off (I wouldn't know for sure as I do not have any frame of reference; it would be helpful to see what a "normal" system looks like or, rather, should look like) and I can't find any answers anywhere else so I thought I would bring the questions here.
Also, forgive my lack of correct verbiage and terminology as I said, I am very new and just now learning the rudimentary things such as lexicon and proper protocols and syntax.
--I ran verify permissions on disk utility and got back a log file that said the permissions for ARDAgent & VNC (Remote Man and Remote Desk) were not correct. It also said that the SUID for for the ARDAgent had changed and would not be repaired and that the ACL was not found in "Volumes".
I ran permissions repair and got the message that permissions had been repaired and that ACL found but not expected on "private/var/root/Library/Preferences" and that it was repaired.
So then I ran a disk verify again and it came back green and okay. I re-ran the verify permissions and it came back with a bunch of permission errors in the same areas plus one more (Java). In Terminal when I type ls -l t lists me as drwx (d in this case is "directory" which means I have permission to rwx all the files in my main directory?) for most of them and the root as lrwx. The disk utility logfile lists the proposed changes to permissions for me without either an "l" (ell) or "d" in front...is this normal?
I thought I might either go in manually to change the permissions to what they should be or permanently remove remote desktop and remote manager as a sudo user since I will never use them anyway. Any advice as to how to "fix" this "problem"?
The second thing I wanted to do that's not working out is checking sudo user/password privileges in Terminal...I typed /etc/passwd and got the message back: "Permission Denied" without any options offered to login in under sudo.
However, when I type sudo -l I am offered the option to type in my Password, which I do, and a list of default entires on the sudo host comes up...underneath this I am listed as (ALL) ALL, meaning I can run all commands on the host, which is, presumably, as sudo user in the root directory.
Is this (ALL) ALL message meaning to say that I have sudo privileges? I am including a screenshot of what I am referring to. And if I do have privileges as a sudo user, then why can I not access the /etc/passwd file? Do I need to first enable root in the directory utility in order to read that file and make any necessary adjustments to privileges?
I am also being denied permission to run net <cmd>s.
I do know about the man and have been referencing it routinely, but the language and manner of communication in the man is really very different. What I need is a text book to help me to learn the proper form of writing commands etc. I still do not know how to call up a specific file though I have spent a lot of time on the man reading up on various commands.
Internet searches are tedious, though I have found several docs. Any suggestions would be more than welcome!
Thanks for any help you can offer
MacBook Pro, Mac OS X (10.6.8)
Posted on Apr 17, 2013 2:05 AM

