Using terminal if permissions are refused

... this'll sound like a question 'how can I hack ?', but bear with me..
My iBook was stolen out of my hand - literally - in the street last August. I don't have the means to buy a new one, so I use the iMacs in the University where I'm a student. The admin here is an a**hole. I saw him struggling one day with Terminal, and offered advice (I administer Solaris). He didn't take kindly to it. Since then, he's changed the permissions on all of the iMacs to stop me using Terminal. I used it for ssh and vim, that's all.
His colleague (who is on vacation) changed the permissions back, but as soon as bozo saw that, he freaked, and banned me from using Terminal. I've e-mailed the head of the University to ask if I can use Terminal, but in the meantime, is there any way to open it, if the permissions have been set to prevent it?
I repeat: I'm not trying to hack into one of these machines.
Thanks.

You can bypass the GUI and directly login to your
shell if the login window is set to name and
password. Type: >console and press return. Now enter
your user name and password. Expect your friendly
admin to go bonkers!
I found another method.. in TextEdit, I do..
do shell script "open /Applications/Utilities/Terminal.app"
... select that line and tell Mac-OSX to run it as a shell script. Sorted.

Similar Messages

  • Permissions are badly messed up on any disk Time Machine has used to backup

    *The Short Version:*
    After using an external disk as a Time Machine target, disk permissions are forever and always utterly ignored which causes huge problems when said disk is supposed to share publicly and privately accessible files/folders over the local network.
    Said disk is no longer used for Time Machine, but permissions still refuse to work after the "Ignore ownership..." option is disabled, ACL's are cleared, and more.
    *The Long Version:*
    So, I'm trying to share some folders off of an external disk I temporarily used for a week as a Time Machine backup disk.
    Because I have both "public", and private documents on the disk, I need to use disk permissions, to disallow access to some folders. Enabling file sharing works great, except any and every user get full read/write access to everything.
    I have another external aswell, which is identical, just it's never been used as a Time Machine target volume, and permissions are obeyed perfectly.
    Originally I think the Ignore ownership option was enabled, but the checkbox wasn't showing up on the Get Info panel. After some messing around, I realized it's not displayed if there's a folder called "Backups.backupdb" on the root of the disk.
    Now, a few hours later, after renaming "Backups.backupdb" to "Backups.backupdb_OLD", clearing ACL permissions from the disk, unmounting, mounting, restarting file sharing, and lots more, IT STILL IGNORES ANY AND ALL PERMISSIONS?!
    Is there some kinda super secret disk flag option or something I'm missing which causes OSX to still ignore permissions no matter what?
    I hope someone here knows what's going on, 2 hours of Googling hasn't helped at all.

    UPDATE
    I seem to have gotten file sharing to obey the permissions, to some degree. It included removing the share from system preferences, using TinkerTool System to change the permissions to anything (didn't seem to work via normal Finder, as I'd already tried that), and then adding the volume back in sharing preferences.
    This doesn't really seem very reliable tho, so I'm hoping someone can come with a technical reason/solution for this.

  • HT1941 I have inadvertently changed a file permission setting. When opening Aperture I get the following; Aperture cannot access this library. To use this library make sure it's file permissions are set correctly. I am an old dude new to Mac OS. What up?

    I have inadvertently changed a file permission setting. When opening Aperture I get the following; "Aperture cannot access this library. To use this library make sure it's file permissions are set correctly". I am an old dude new to Mac OS. Looked in settings but have no idea how to allow file sharing to myself. I have been using Aperture actively for 6 weeks. I'm the only one using this Mac. What up?

    Back up all data now.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. If none of this is meaningful to you, you don't need to worry about it.
    Step 1
    If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. You can demote it back to standard status when this step has been completed.
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Drag or copy — do not type — the following line into the Terminal window, then press return:
    sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -R $UID:20 ~ $_ ; chmod -R -N ~ $_ 2> /dev/null
    Be sure to select the whole line by triple-clicking anywhere in it. You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. You don't need to post the warning. If you don’t have a login password, you’ll need to set one before you can run the command.
    The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
    Step 2
    Boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the OS X Utilities screen appears, select Utilities ▹ Terminal from the menu bar. A text window opens.
    In the Terminal window, type this:
    resetpassword
    That's one word with no spaces. Then press return. A Reset Password window opens. You’re not going to reset a password.
    Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select  ▹ Restart from the menu bar.

  • After trying to change permissions on my computer so others on my network can access files, my external Hard Drive has a lock on it and I can't access files. I've tried repairing permissions, logging in under another Administrator account, using Terminal

    After trying to change permissions on my computer so others on my network can grab files, my external Hard Drive has a lock on it and I can't access files. I've tried repairing permissions, logging in under another Administrator account, using Terminal to fix the problem, downloaded BatChmod but nothing works… Any other suggestions? I have an Imac running OS10.6.8.

    There is suddenly a lock icon on my external backup drive!
    Custom Permissions

  • What do I do with this error message: To use this library, make sure its file permissions are set correctly.

    So I cannot even access the application. It was working fine yesterday and today I get this error message:
    To use this library, make sure its file permissions are set correctly.
    I have changed nothing. All the pictures are there on the computer. Help?!

    Reboot.  Close any programs which open at start-up.  Run Disk Utility (you can type this in the Spotlight search field at the right end of your Menubar).
    In Disk Utility, select your drive from the list on the left, and click "Repair Disk Permissions".  This will take a few minutes, but should be less than ten.
    Reboot.
    Try to open your Library in Aperture.  What happens?

  • Aperture cannot access this library" followed by "To use this library, make sure its file permissions are set correctly."

    Hi,
    I am completely confused. I use aperture everyday and today when I tried to open it I got the following message " aperture cannot access this library" then it said to use this library , make sure its file permissions are set correctly"
    So i read a bunch of posts and opened aperture while holding down option and command and repaired the file permissions.  it did nothing, when I tried to open aperture I received the same message.   So then i tried opening it while holding down just the option key. This brought up all of my libraries but when I chose the library i use daily the same message came up.
    Does anyone know how to fix this and/ or why it is happening?
    Thank you

    No idea how to check the format, not familiar with Drobo products. Does the drive show up in Disk Utility? If so you should be able to see how it is formatted there.
    How long has this setup been in use?
    Aperture libraries have to be on locally connected drives formatted as OS Extended as per Apple (see Format external drives to Mac OS Extended before using with Aperture for example). While Aperture may work with other setups there is always the possibility that the library will become unusable at any point in time with no warning.
    Try to find out the format of the drive and post back. Maybe something can be done but from the error messages you are getting I'm thinking the best course of action will be to restore from backups onto a correctly formatted drive.
    regards

  • Permissions are all messed up in 10.9

    I installed Mavericks 10.9 on my 2008 Mac Pro desktop a couple of months ago. Then the monitors (2 of them) developed odd patterns. Apple Care (AC) tried to help me start 10.9 in Safe Mode, but when the progress bar finished, the computer shut itself off. We could never start in Safe Mode. Then AC diagnosed a hardware problem and recommended an Apple repair shop near me. The the video card was bad and they replaced it. But when they got things running, the permissions were very screwed up. They spent a lot of time repairing them (I don't know how), and then they upgraded the MacHD from a 1.5T Seagate to a 2T Western Digital and cloned the old MacHD to the new 2T drive. I took the machine home and still had permission problems and other problems. Adobe Acrobat Pro would not print PDF files, which I fixed with a suggestion from the Apple Forum. Then Photoshop CS4 gave me a "License Expired" message (Error code 150:30). I fixed that from the Forum (Adobe Community > Downloading, Installing, Setting Up > Discussions: Error code 150:30), with a fix that required a little entry in Terminal ($ sudo sh install_fnp.sh). That allowed me to open Photoshop, but when I turned Photoshop off and restarted it I got the "License Expired" message again.
    On the advice of Apple personnel in the Apple Store in Spokane, I unstalled Photoshop CS4 and reinstalled it from the CS4 Suite DVDs, installing just PS with all the supporting apps that the installation automatically chose. Then when I started PS, I got an error "Don't have adequate permission access" or something like that that has been addressed in the Forums. From the Forums, I followed the suggestion of adding "username(me)" to the permissions window of the Info panel of the MacHD and choosing "Apply to enclosed items". That got rid of the "Don't have adequate permission access" error, but I got back the "License Expired" error again and PS wouldn't open. When I tried the "sudo sh instyall_fnp.sh" fix again, I discovered that I couldn't log in to Terminal:
    Last login: Thu Feb 20 18:27:35 on console
    login(12166,0x7fff7cf59310) malloc: *** error for object 0x7fe65b500180: pointer being freed was not allocated
    *** set a breakpoint in malloc_error_break to debug
    [Process completed]
    Meanwhile, using Disc Utility and "Verify Permissions" I see that my Permissions are still totally messed up. So I don't know what to do now.
    I also have a Macbook Air. I see that in "Disk Utility > Verify Disk Permissions", the Permissions are also messed up on my Macbook Air, on which I installed 10.9 recently, but it seems to be working ok, so I have just left it alone.
    I'm the Administrator and only User on this system. The Permissions remain a huge mystery to me. What is the difference between "Administrator", "System", and "Username(me)"? Should all these be present, with "Read & Write" access? And how do you fix such global Permissions problems?
    Can anyone help?
    Thanks.

    You may need to rebuild permissions on your user account. To do this,boot to your Recovery partition (holding down the Command and R keys while booting) and open Terminal from the Utilities menu. In Terminal, type:  ‘resetpassword’ (without the ’s), hit return, and select the admin user. You are not going to reset your password. Click on the icon for your Macs hard drive at the top. From the drop down below it select the user account which is having issues. At the bottom of the window, you'll see an area labeled Restore Home Directory Permissions and ACLs. Click the reset button there. The process takes a few minutes. When complete, restart.   
    Repair User Permissions

  • Files that used to be visible are now hidden in Mavericks. How can I change the setting to view the same files as before? I do not need the hidden files that are typically invisible.

    Files that used to be visible are now hidden in Mavericks 10.9.1. How can I change the setting to view the same files as before? I do not need the hidden files that are typically invisible.
    I am having trouble locating such files as PDF's INDD, AI etc. When I view all hidden files and try to open it in the program..it looks like it is really not on the drive. Has anyone come across a solution?

    You may need to rebuild permissions on your user account. To do this,boot to your Recovery partition (holding down the Command and R keys while booting) and open Terminal from the Utilities menu. In Terminal, type:  ‘resetpassword’ (without the ’s), hit return, and select the admin user. You are not going to reset your password. Click on the icon for your Macs hard drive at the top. From the drop down below it select the user account which is having issues. At the bottom of the window, you'll see an area labeled Restore Home Directory Permissions and ACLs. Click the reset button there. The process takes a few minutes. When complete, restart.   
    Repair User Permissions

  • "Custom Access" permissions are locking me out of my own computer!

    "Custom Access" permissions are locking me out of my own computer!
    I have a Mac Book Pro which I can no longer access, due, I believe, to a problem with disk and file permissions. When I attempt to open up the volume, which I am able to put in FireWire target mode and mount on the desktop of a nearby iMac G5, I get an error message saying: "The folder 'MacBook Pro' could not be opened because you do not have sufficient access privileges."
    When I select the 'MacBook Pro' volume and run the Get Info command, I learn that the system, admin, and everyone else groups now have "custom access." I suppose that this newly acquired "custom access" is the reason that the volume icon now appears on the desktop with a lock at its lower left corner! Unfortunately, that lock is keeping me out, so I need help in finding the key back in!
    How all this came about overnight is a mystery wrapped in a enigma similar to my getting pneumonia last summer. Coming down with both diseases would require telling long stories that would only have as their common objective the desire to be cured. I might have gotten the pneumonia at my college reunion; my laptop computer might have caught a cold last night when I ran TechTool Pro and optimized my volume prior to installing its eDrive today. Or, my laptop computer may have choked when I tried to add Disk Warrior to the TechTool Pro eDrive and inadvertently issued some command that resulted in my normal permission settings getting changed and rendering everything on the computer completely inaccessible to me. Who knows for sure? Right now, the cause doesn't matter: finding the solution does.
    I used TechTool Pro to run a series of tests before (and after) I got locked out of my own computer and the volume passed all the tests for volume integrity and file integrity. TechTool also rebuilt the directory, defragged all the files, and optimized the hard drive into one, large, well-organized segment of files --that I unfortunately can no longer access!
    *What I think I need now are some very explicit, error-free, Terminal (UNIX) instructions telling me how to change the permissions on an external FireWire volume called "MacBook Pro" containing Leopard Mac OS X 10.5.7 from its current custom access privileges back to my settings before my poor computer caught this disabling cold.*
    I do have a SuperDuper clone of this MacBook Pro computer on an external FireWire, which I could probably use to relieve me of my pain. But, if at all possible, I would like to call upon that option only as a last resort for two reasons:
    (1) I am not entirely comfortable that the clone is completely reliable at this moment. My last cloning operation last night (before this corrupted permissions problem occurred) did not complete itself, leaving the cloned volume in an unknown, or unstable, state. (2) I would like to use this problem as an opportunity to grow and learn more about the Terminal and UNIX commands.
    I have read the relevant sections in David Pogue's missing manual on Mac OS X Leopard, so I am familiar (in theory) with the concepts he explained regarding ownership, file permissions, the root, Terminal, the CHMOD command, and the SUDO command. It's just that, considering the awesome power of the SuperUser Do command, I'm not all that confident yet that I could write the command(s) that could affect the state of my entire computer hard drive. So, *I'm asking for guidance from a UNIX guru to guide my hand this first time out.*
    I know about the idea of safe booting up as a single user, but since I do have my laptop computer mounted on the desktop of my iMac as a Firewire volume, I would prefer to use Terminal on the iMac to fix the permissions on that mounted volume, called "MacBook Pro".
    *Experts only, please*. Theories about what might have caused this problem would be nice, but what I really need is explicit command line code to cure this one. Since other people may occasionally encounter this problem of being locked out of their own computer, it would be fine with me if some knowledgeable guru wants to use this as a springboard to write a detailed tutorial on the topic along the way to the solution. Thanks.
    bowlerboy_jmb

    {I read that article you sent me to, Baltwo, but it does not seem appropriate, because the disk is not invisible. It's locked! I also went through all the discussions on flag changing you directed to me to look up, and I tried to apply something from there to my situation. But that's not working for me yet either. The topics there seem to be close enough to be relevant to my case, but none are exactly on the mark, and so far they deliver no cigar. Maybe I missed the one thread you had in mind from among the twenty I looked through: I can't be sure. You point it out, if you have one in mind. Anyway, in the absence of anyone providing me with specific Unix code or suggestions about my particular situation, I plunged ahead on my own, and I attempted to write some Unix code that might fix my problem. So far, I've had no success. This posting intersperses my comments along with the lines of Unix code which were displayed on my MacBook Pro during my recent attempts to tinker under the hood. My remarks are contained inside of curly brackets like { and } while the results of my Unix experimenting in Single User Mode on the laptop are presented without curly brackets. These were initially notes to myself, so I'm creating a post around my Unix dabbling to see if it triggers any feedback, corrections, and guidance for moving ahead. I'm stuck right now.}
    date
    Fri Jun 19 17:52:25 EDT 2009
    :/ root# sudo chflags nouchg /
    sudo: can't open /private/etc/sudoers: Permission denied
    :/ root# sendmail: warning: valid_hostname: empty hostname
    sendmail: fatal: unable to use my own hostname
    :/ root# ls -l
    {The screen filled up with rows of file names and their permissions, like...}
    drwxrwxr-x+ 43 root admin 1462 Jun 16 04:36 Applications
    :/ root# exit
    {Nothing happens for quite a while, then...}
    jettisoning kernel linker.
    {...and then several lines of replies fill up the screen, ending in that same loop regarding no such file or directory found, in regards to mDNSResponder. I had tried the {chmod 775 > solution recommended by a user at a web site I Googled to deal with the mDNSResponder problem he had. The chmod 775 / command worked for him, he reported, but it does not succeed for me. The mDNSResponderline continues to repeat itself ad infinitum, so I must force the Mac to turn off by holding down the power button for several seconds. Upon restart in Single User mode, I observe that, as before, "Root device is mounted read-only," so this time I try to amend permissions at the root level with...}
    :/ root# sudo chmod 755 /
    {If I understand what I've just learned about Unix, this tells the Mac to give me permission to do anything, but to give all others permission only to read and execute. Unfortunately, the command fails. The computer again responded with the same lines that it gave me when I had issued the command regarding no user flags, namely:}
    sudo: can't open /private/etc/sudoers: Permission denied
    :/ root# sendmail: warning: valid_hostname: empty hostname
    sendmail: fatal: unable to use my own hostname
    {So, to summarize, I have a MacBook Pro which I am apparently locked out of and cannot change. The hard disk is not invisible: it will appear as an external drive when placed in Target Mode and connected via a Firewire cable to an iMac. I tried to use Terminal on that iMac to change permissions on the MacBook Pro, but permission was denied.
    {So, I have tried to make changes on the MacBook Pro directly. I learned that it will neither start-up under normal circumstances nor via Safe Boot mode. It will, however, start-up under Single User mode. Based on my bleary-eyed crash course in Unix throughout all of last night and early this morning, I did gain some additional understanding about UNIX from some [free online books|http://www.scribd.com/doc/12747795/Made-Easy-Unix-for-Beginners] and articles, especially from a thorough and lucidly written article at Indiana University called [In Unix, how do I change the permissions for a file?|http://kb.iu.edu/data/data/abdb.html]
    {Also, I followed the links to the Apple discussions on user flags, and I cherry picked the most appropriate solutions suggested there to see if they will apply to my situation. However, none quite fit. None have thus far succeeded. I think I now know how to formulate the syntax of Unix commands in regards to modifying permissions, and I'm willing to plow ahead and try things out. But I'm only a rank beginner in this Unix realm, so maybe I'm doing something wrong in that department.
    {It just boggles my mind that someone can inadvertently be locked out of their computer without a way back in, so all I'm asking for is some trouble-shooting guidance to find the key back in. Anyone got it? Is this a problem that can be cured by writing some Unix commands to the system? Or, does the solution lie elsewhere?}
    bowlerboy_jmb

  • Maintenance scripts never run?/using terminal

    Hi everyone! I am a very new Mac user and am finding at times it to be completely daunting.
    So my question/problem is this: I shut down my computer nightly, and from what I have researched, it does not perform maintenance. I did a Terminal command to find when my script last ran and received this:
    ls: /var/log/*.out: No such file or directory
    Does this mean the scripts have never run? Can I change the default times these are executed?
    I also went into the launchdaemons folder and it is empty. Does that mean anything?
    I could really used a dumb down version of any answers, I have never used a Mac before I bought one, and actually just learned of the Terminal program today. I have been to The X Lab and read through that site, and searched the forum here.
    Sorry for all the questions, I am so confused and terrified of damaging this computer.
    Thank you in advance!

    Welcome To  Discussions irach!
    Here is some additional info.
    As Kappy posted, if you turn the Mac off nightly, the Background Maintenance Tasks, are never run.
    These can also be run, using a Third-Party utility, or manually using Terminal, to run the CRON Commands.
    I use MacJanitor, when necessary.
    INSTRUCTIONS TO RUN CRON MANUAL COMMANDS
    Quit all applications/programs.
    Navigate to HD > Applications > Utilities.
    Double click on Terminal, to open.
    At the prompt, type:
    sudo periodic daily
    Press Return.
    Enter your Admin password when prompted, then press Return.
    This will execute the daily script that is sheduled to run every night.
    When completed, repeat this procedure, but change the command to:
    sudo periodic weekly
    This one rebuilds a database or two, and usually takes somewhat longer to complete. It is scheduled to run once a week.
    Repeat again, with command:
    sudo periodic monthly
    Or they can all be run in one pass, which is preferable, with this command:
    sudo periodic daily weekly monthly
    When the tasks complete, and return to the prompt, you may quit Terminal.
    Restart the Mac, and run Repair Permissions.
    TO REPAIR PERMISSIONS ON THE STARTUP DISK
    1.Open Disk Utility, located in Applications/Utilities, and select the startup disk in the left column.
    2.Click First Aid.
    3.Click Verify Disk Permissions to test permissions or Repair Disk Permissions to test and repair permissions. (I never "Verify". Just run "Repair".)
    Rerun RP, until the only messages reported, are listed here Spurious Permissions Errors Using: 10.4.x, authored by Michael Conniff.
    When "Repair Permissions" is complete. Quit "Disk Utility".
    ali b

  • Empty the trash using Terminal on install DVD?

    iMac doesn't boot up - stuck on grey screen with spinning wheel, tried all the suggestions.
    Thought a reinstall of Snow Leopard using the Install DVD would work. And of course I don't have enough space to do so...
    This is what I have so far using Terminal via the install disc:
    cd /Volumes
    ls
    .Trashes   Mac OS X Install Disc 1   Macintosh HD
    cd "Macintosh HD"
    It then brings up all the files on my Mac HD but I'm not sure where to find the Trash and how to empty it :/
    Apparently I can also install and boot from a USB but I'm not sure how that works either... help me please

    I'd suggest getting an external hd.  Install the os to the external hd.  Do it this way you are less likely to loose your valuable data.
    You need
    ls -a
    to see hidden files.  I do
    ls -laF
    to remove a empty directory you need
    rmdir
    to remove a file you need
    rm
    The files are not recoverable.  All deletes are final.
    I recommand
    rm -i
    Here is an overview of the terminal commands.  Lets assume that your account has a short user name of mac.
    Macintosh-HD -> Applications -> Utilities -> Terminal
    #What is my short user name?  Type the whoami command.
    mac $ whoami
    mac
    mac $
    #How to list all of your disks.
    # The ls command is for list
    mac $ ls /Volumes/
    Audio CD       Macintosh-HD   Spotless       Tiger-ext
    mac $
      # Let's say your flash drive is named Spotless
    # cd is change directory
    mac $ cd /Volumes/Spotless
    # pwd is Print Working Directory. A directory is the Unix name for a folder.  You are always in a directory.
    mac $ pwd
    /Volumes/Spotless
    mac $
      # The ls command is for list
    # l is long
    # F is type of file where / is directory.  For directories, the slash is pasted to the end of the name. 
    mac $ ls -lF
    total 134704
    -rw-r--r--     1 mac  staff     64560 Mar  3  2009 A-picture-of-Youpi-key.png
    drwxr-xr-x    83 mac  staff      2822 Nov  7 14:52 Applescript files/
    drwxrwxrwx    12 mac  staff       408 Dec 13  2008 Christmas Cards/
    drwxr-xr-x     9 mac  staff       306 Dec 21 17:39 Christmas Cards 2009/
    ... trimmed ... What does all this mean?
    drwxrwxrwx
    d = directory
    r = read
    w = write
    x = executeable program
    drwxrwxrwx
    ||  |  |
    ||  |   all other users not in first two types
    ||  | 
    ||  group
    ||
    |owner

    What type of entry is this? d = directory, - = file, etc. 
    Every Unix resource: files, folders, etc has an owner, group, other 
    A Unix resource has one owner.
    A Unix resource has one group.  A group contains a list of users.
    To gain access to a file, you can be the owner, in the group, or not the owner and not in the group hence you end up as other. The owner, group, or other  has read, write, or execute permissions.
    # l is long
    # a is all to show hidden files & folders
    mac $ ls -lFa
    total 134736
    drwxr-xr-x    41 mac   staff      1496 Dec 22 17:11 .
    drwxrwxrwt     8 root  admin       272 Dec 24 13:55 ..
    -rwxrwxrwx     1 mac   staff     15364 Dec 23 12:52 .DS_Store*
    drwx------     4 mac   staff       136 Jan 22  2009 .Spotlight-V100
    drwxrwxrwt     5 mac   staff       170 Sep 14 16:36 .TemporaryItems
    d-wx-wx-wx     4 mac   staff       136 Dec 31  1969 .Trashes
    -rw-r--r--     1 mac  staff     64560 Mar  3  2009 A-picture-of-Youpi-key.png
    drwxr-xr-x    83 mac   staff      2822 Nov  7 14:52 Applescript files
    drwxrwxrwx    12 mac   staff       408 Dec 13  2008 Christmas Cards
    drwxr-xr-x     9 mac   staff       306 Dec 21 17:39 Christmas Cards 2009
    ... trimmed ...
    # mv is move or rename
    mv -i the-name the-new-name
    # You can just rename the file back to what it was with mv command.
    mv -i old-name new-name
    Here is what these commands mean:
    cd is change directory
    pwd is a print working directory
    ls is list
    sudo is Super user do
    mv is move or rename
    For cryptic comments, you can always uses the manual command which is man. For example:
    man mv 
    # Type the letter q to quit.
    In case you have spaces in your filenames or directories, you need to escape them. See examples: 
    mac $ ls -l ~/"see it"
    -rw-r--r-- 1 mac staff 3171 Oct 26 23:38 /Users/mac/see it
    mac $
    mac $ cd /Users/mac/Desktop/ttt\ html\ copy/
    Do you know about tabbing? Type in a few letters of a name then press the tab key. The computer will type out the rest of the name if it is unique.
    Press the up arrow key to see the previous command(s).
    To edit a command, use the left arrow key to more left and the right arrow key to move right.  Use the delete key to delete the key to the left.  Type a letter to insert.
    history to see many previous commands. 
    mac $ history
        1  pwd
        2  man ls
        3  history
    You may copy then paste from this list.
    http://discussions.apple.com/thread.jspa?threadID=2692161&tstart=0 
    Robert

  • ?s on using Terminal to unlock an internal volume

    Recently one of my internal volumes (ALB Files) is displaying a "lock" symbol in the lower left corner. After using "get if," all the permissions have been changes to "custom" and I am unable to access the data.
    I have my internal 500GB HD partitioned as such:
    ALB OS -> only the operating system
    ALB Files -> all other media (music, movies, docs, etc)
    From what I've gathered on various forums, I need to use terminal to fix the access rights on the "ALB Files" volume. Here are the terminal scripts I think I need:
    sudo chflags 0 /volumes/* ---> this removes the current access info on ALL volumes
    sudo chmod a+rx /volumes/* ---> this adds read/write for all users on ALL volumes
    sudo chmod o=rx /
    sudo chmod -N ---> the last two are suppose to remove "everyone" from having top level access to the drives.
    This is my first time using Terminal so I need some help executing the scripts properly. I want to change the scripts to only target one specific volume "ALB Files." Therefore, should the first two scripts read:
    sudo chflags 0 /"ALB Files"/* ---> this removes the current access info only on "ALB Files?"
    sudo chmod a+rx /ALB Files"/* ---> this adds read/write for all users only on "ALB Files?"
    Please let me know if these commands are correct or suggest what I should use instead.
    Also, because I am changing permissions on my OS volume, do I need to boot from the OSX disk and run Terminal there?
    Thanks much for the help!!!

    Run commands such as:
    sudo chflags 0 '/Volumes/ALB Files/'
    Also, because I am changing permissions on my OS volume, do I need to boot from the OSX disk and run Terminal there?
    No.
    (45881)

  • Hello there - I am sharing an iPhoto library across two accounts on the same computer - it works fine EXCEPT for Quicktime movies - they play on one account and claim I don't have the rights on the other - all permissions are on and ok?

    Hello there - I am sharing an iPhoto library across two accounts on the same computer - it works fine EXCEPT for Quicktime movies - they play on one account and claim I don't have the rights on the other - all permissions are on and ok?

    It should be in the Users/ Shared folder.
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Note the option to check and repair Library Permissions
    Regards
    TD

  • Using terminal to change IP address

    One emac has gone odd. It refuses it acknowledge the server and it has locked its IP address off the network. It retains the server prefs and won't let me use the sys prefs to open network. (I work in a school - obviously I lock them 80 ).
    Can anyone tell me which file(s) I need to find on the client to change the IP address using terminal please. I've been looking at files in /etc where I think it should be but can't find anything.
    Muchos gracias,
    Danke viel mals
    Merci bien
    Thanks
    Mark

    Hi Candor,
    try man ifconfig !

  • Permissions are not displaying correctly on Yosemite server

    My file and folder permissions are not displaying correctly on my Yosemite server when viewed from a Yosemite client.
    I have set these permissions from the server app on the server and have added local network groups for the appropriate folders on the share.  When checked from the server's finder, everything looks correct.  The server is setup for both AFP and SMB on file sharing.  I have also tried setting permissions from the server's finder and seemed to make no difference.
    When logged into from local or VPN Yosemite clients using AFP, the permissions do not show anything but postgres user and everyone group.  Even though they should have network groups such as skoogfinancial, skoogmarketing, etc.
    The server does seem to enforce the permissions correctly though a user cannot get into folders he does not have permissions for.
    Therefore, it seems the server is enforcing correctly, but a user may not understand what is going on as the permissions list doesn't list anything meaningful.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of this exercise is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login. Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode* and log in to the account with the problem. The instructions provided by Apple are as follows:
    Be sure your Mac is shut down.
    Press the power button.
    Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
    Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).
    *Note: If FileVault is enabled under OS X 10.7 or later, or if a firmware password is set, you can’t boot in safe mode.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem(s)?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

Maybe you are looking for

  • Display of selected row no in table footer.

    Hi, Row no of first row is generally displayed in the footer of the table as Row <first row rowno> of <total no of rows>.Eg Row 1 of 10. Can this be changed to display row no of currently selected row insted of first row? Thanks in advance, Apurva.

  • Final Rebate Settlement - Error

    Hi, When doing final rebate settlement, via RBT_ENH_VB7, it is saying "No condition record found for rebate agreement". But we are able to do partial settlement. What does it mean?

  • BW can have multiple client?

    Hello Experts, is it possible to have multiple client for the BW System? if yes please guide me in creating the one more client to our BW System. ( BW 3.0B). and also give information about setting i want to ensure before creating client. thanks in a

  • QuickTime Pro not recognized after having to reinstall

    I have my registration code, but I cannot register the copy as QUicktime Pro after having to UNinstall quicktime during the lastest iTunes update process. (I followed directions on apple.com how to correct an issue with my "audio configuration" which

  • BAPI Structure populating using field name and field value frm internal tbl

    Hi Experts,                  Need your help, my requirement is to populate BAPI import structure using its field name and filed value  stored in a internal table.  Please advise the best approach. Regards Ram.