Terminal command to restart Samba?

Anyone know what the terminal command is to restart Samba under OS X 10.5.4?
I've searched all over and can't seem to find the answer to this question. I've tried...
/etc/rc.d/init.d/smb restart
Not valid under OS X
sudo killall -HUP smbd
Not sure if this is working as I get no indication from the terminal that anything has actually happened.
Thank You

Post your query to the Unix forum under OS X Technologies where the Unix and Terminal gurus congregate.

Similar Messages

  • How to restart Samba

    Hello, how can I restart Samba via the Terminal under OS X 10.5.4?
    I've tried...
    /etc/rc.d/init.d/smb restart
    Not valid under OS X
    sudo killall -HUP smbd
    Not sure if this is working as I get no indication from the terminal that anything has actually happened.
    Thank You

    sudo killall -HUP smbd
    This will only send the HUP signal to all running smbd processes. The processes will trap that signal and do whatever their signal handlers tell them to do (I think a HUP will make them reread their configuration files). You will not get any output when that command completes successfully, so what you're seeing is expected.
    Hello, how can I restart Samba via the Terminal under OS X 10.5.4?
    smbd is managed by launchd, which is the daemon responsible for managing user and system processes. This piece of infrastructure is what runs programs on demand, for example, and is ultimately the parent process of everything in the system.
    The launchctl command is how you interface with launchd. There's a man page that describes how to use launchctl, but in general you could do something like this to stop/start smbd:
    sudo launchctl stop org.samba.smbd
    sudo launchctl start org.samba.smbd

  • How do I restart samba on OSX 10.6.7?

    How do you restart Samba on OSX 10.6.7?  I've looked everywhere can't find any docs.
    Reason for asking is that on occasion Samba just hangs and I have to forcibly restart the mac to fix it.  (restart command just hangs the mac).  It seems to have something to do with open connections to Win7 clients and sleep mode.

    There are two ways:
    1. Go to your Sharing system preferences and uncheck the file sharing service (optionally go to the "Options" in sharing and disable SMB specifically). Then reverse these settings to turn it back on.
    2. Use the launchctl utility in the Terminal to stop and restart the samba daemon. Open the Terminal and enter the following command to stop the daemon:
    sudo launchctl stop org.samba.smbd
    After this is done, redo the command with "start" to restart the daemon:
    sudo launchctl start org.samba.smbd

  • Terminal command for tabs to open in same window

    anyone know the terminal command to have all links open in tabs instead of a new window - why does mac call it tabs when it does not even actually work - any help would be great - i had the command and i deleted it......driving me nuts

    Greetings,
    There is no such command; there is a command to force targeted links to open in new tabs, but it will have no effect on links that are controlled by JavaScript. Open Terminal and enter:
    defaults write com.apple.Safari TargetedClickCreateTabs -bool true
    press Enter or Return, then quit Terminal and restart Safari.

  • I get "App Store Disabled" on my MacBook Pro due to profile issues. What Terminal command can I use to reset profile settings?

    After transferring documents from one MacBook Pro to another I get some weird errors due to settings that seem to have transferred over. One is that the Mac App Store is disabled.
    Are there any Unix / Terminal commands I can use to reset these?

    Forgot Your Account Password
    For Lion/Mountain Lion
        Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
         When the menubar appears select Terminal from the Utilities menu.
         Enter resetpassword at the prompt and press RETURN. Follow
         instructions in the dialog window that will appear.
         Or see Reset a Mac OS X 10.7 Lion Password and
         OS X Lion- Apple ID can be used to reset your user account password.

  • Need to restart samba to access a shared folder

    So, that is what happens to me just now, i have to restart samba once the system boots up so i can access any share.
    # This is the main Samba configuration file. You should read the
    # smb.conf(5) manual page in order to understand the options listed
    # here. Samba has a huge number of configurable options (perhaps too
    # many!) most of which are not shown in this example
    # For a step to step guide on installing, configuring and using samba,
    # read the Samba-HOWTO-Collection. This may be obtained from:
    # http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf
    # Many working examples of smb.conf files can be found in the
    # Samba-Guide which is generated daily and can be downloaded from:
    # http://www.samba.org/samba/docs/Samba-Guide.pdf
    # Any line which starts with a ; (semi-colon) or a # (hash)
    # is a comment and is ignored. In this example we will use a #
    # for commentry and a ; for parts of the config file that you
    # may wish to enable
    # NOTE: Whenever you modify this file you should run the command "testparm"
    # to check that you have not made any basic syntactic errors.
    #======================= Global Settings =====================================
    [global]
    # workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH
    workgroup = WORKGROUP
    # server string is the equivalent of the NT Description field
    server string = Samba Server
    # Security mode. Defines in which mode Samba will operate. Possible
    # values are share, user, server, domain and ads. Most people will want
    # user level security. See the Samba-HOWTO-Collection for details.
    security = share
    map to guest = Bad User
    # This option is important for security. It allows you to restrict
    # connections to machines which are on your local network. The
    # following example restricts access to two C class networks and
    # the "loopback" interface. For more examples of the syntax see
    # the smb.conf man page
    ;hosts allow = 192.168.5. 127.
    # If you want to automatically load your printer list rather
    # than setting them up individually then you'll need this
    load printers = yes
    # you may wish to override the location of the printcap file
    ; printcap name = /etc/printcap
    # on SystemV system setting printcap name to lpstat should allow
    # you to automatically obtain a printer list from the SystemV spool
    # system
    ; printcap name = lpstat
    # It should not be necessary to specify the print system type unless
    # it is non-standard. Currently supported print systems include:
    # bsd, cups, sysv, plp, lprng, aix, hpux, qnx
    ; printing = cups
    # Uncomment this if you want a guest account, you must add this to /etc/passwd
    # otherwise the user "nobody" is used
    guest account = nobody
    # this tells Samba to use a separate log file for each machine
    # that connects
    log file = /var/log/samba/%m.log
    # Put a capping on the size of the log files (in Kb).
    max log size = 50
    # Use password server option only with security = server
    # The argument list may include:
    # password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name]
    # or to auto-locate the domain controller/s
    # password server = *
    ; password server = <NT-Server-Name>
    # Use the realm option only with security = ads
    # Specifies the Active Directory realm the host is part of
    ; realm = MY_REALM
    # Backend to store user information in. New installations should
    # use either tdbsam or ldapsam. smbpasswd is available for backwards
    # compatibility. tdbsam requires no further configuration.
    ; passdb backend = tdbsam
    # Using the following line enables you to customise your configuration
    # on a per machine basis. The %m gets replaced with the netbios name
    # of the machine that is connecting.
    # Note: Consider carefully the location in the configuration file of
    # this line. The included file is read at that point.
    ; include = /usr/local/samba/lib/smb.conf.%m
    # Configure Samba to use multiple interfaces
    # If you have multiple network interfaces then you must list them
    # here. See the man page for details.
    ; interfaces = 192.168.12.2/24 192.168.13.2/24
    # Browser Control Options:
    # set local master to no if you don't want Samba to become a master
    # browser on your network. Otherwise the normal election rules apply
    ; local master = no
    # OS Level determines the precedence of this server in master browser
    # elections. The default value should be reasonable
    ; os level = 33
    # Domain Master specifies Samba to be the Domain Master Browser. This
    # allows Samba to collate browse lists between subnets. Don't use this
    # if you already have a Windows NT domain controller doing this job
    ; domain master = yes
    # Preferred Master causes Samba to force a local browser election on startup
    # and gives it a slightly higher chance of winning the election
    ; preferred master = yes
    # Enable this if you want Samba to be a domain logon server for
    # Windows95 workstations.
    ; domain logons = yes
    # if you enable domain logons then you may want a per-machine or
    # per user logon script
    # run a specific logon batch file per workstation (machine)
    ; logon script = %m.bat
    # run a specific logon batch file per username
    ; logon script = %U.bat
    # Where to store roving profiles (only for Win95 and WinNT)
    # %L substitutes for this servers netbios name, %U is username
    # You must uncomment the [Profiles] share below
    ; logon path = \\%L\Profiles\%U
    # Windows Internet Name Serving Support Section:
    # WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
    ; wins support = yes
    # WINS Server - Tells the NMBD components of Samba to be a WINS Client
    # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
    ; wins server = w.x.y.z
    # WINS Proxy - Tells Samba to answer name resolution queries on
    # behalf of a non WINS capable client, for this to work there must be
    # at least one WINS Server on the network. The default is NO.
    ; wins proxy = yes
    # DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
    # via DNS nslookups. The default is NO.
    dns proxy = no
    # These scripts are used on a domain controller or stand-alone
    # machine to add or delete corresponding unix accounts
    ; add user script = /usr/sbin/useradd %u
    ; add group script = /usr/sbin/groupadd %g
    ; add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u
    ; delete user script = /usr/sbin/userdel %u
    ; delete user from group script = /usr/sbin/deluser %u %g
    ; delete group script = /usr/sbin/groupdel %g
    #============================ Share Definitions ==============================
    ;[homes]
    ; comment = Home Directories
    ; browseable = no
    ; writable = yes
    # Un-comment the following and create the netlogon directory for Domain Logons
    ; [netlogon]
    ; comment = Network Logon Service
    ; path = /usr/local/samba/lib/netlogon
    ; guest ok = yes
    ; writable = no
    ; share modes = no
    # Un-comment the following to provide a specific roving profile share
    # the default is to use the user's home directory
    ;[Profiles]
    ; path = /usr/local/samba/profiles
    ; browseable = no
    ; guest ok = yes
    # NOTE: If you have a BSD-style print system there is no need to
    # specifically define each individual printer
    ;[printers]
    ; comment = All Printers
    ; path = /var/spool/samba
    ; browseable = no
    ;# Set public = yes to allow user 'guest account' to print
    ; guest ok = no
    ; writable = no
    ; printable = yes
    # This one is useful for people to share files
    ;[tmp]
    ; comment = Temporary file space
    ; path = /tmp
    ; read only = no
    ; public = yes
    # A publicly accessible directory, but read only, except for people in
    # the "staff" group
    ;[public]
    ; comment = Public Stuff
    ; path = /home/samba
    ; public = yes
    ; writable = no
    ; printable = no
    ; write list = @staff
    # Other examples.
    # A private printer, usable only by fred. Spool data will be placed in fred's
    # home directory. Note that fred must have write access to the spool directory,
    # wherever it is.
    ;[fredsprn]
    ; comment = Fred's Printer
    ; valid users = fred
    ; path = /homes/fred
    ; printer = freds_printer
    ; public = no
    ; writable = no
    ; printable = yes
    # A private directory, usable only by fred. Note that fred requires write
    # access to the directory.
    ;[fredsdir]
    ; comment = Fred's Service
    ; path = /usr/somewhere/private
    ; valid users = fred
    ; public = no
    ; writable = yes
    ; printable = no
    # a service which has a different directory for each machine that connects
    # this allows you to tailor configurations to incoming machines. You could
    # also use the %U option to tailor it by user name.
    # The %m gets replaced with the machine name that is connecting.
    ;[pchome]
    ; comment = PC Directories
    ; path = /usr/pc/%m
    ; public = no
    ; writable = yes
    # A publicly accessible directory, read/write to all users. Note that all files
    # created in the directory by users will be owned by the default user, so
    # any user with access can delete any other user's files. Obviously this
    # directory must be writable by the default user. Another user could of course
    # be specified, in which case all files would be owned by that user instead.
    [Shared]
    path = /home/Shared
    available = yes
    browsable = yes
    public = yes
    writable = yes
    [Multimedia]
    path = /home/Multimedia
    available = yes
    browsable = yes
    public = yes
    writable = yes
    # The following two entries demonstrate how to share a directory so that two
    # users can place files there that will be owned by the specific users. In this
    # setup, the directory should be writable by both users and should have the
    # sticky bit set on it to prevent abuse. Obviously this could be extended to
    # as many users as required.
    ;[myshare]
    ; comment = Mary's and Fred's stuff
    ; path = /usr/somewhere/shared
    ; valid users = mary fred
    ; public = no
    ; writable = yes
    ; printable = no
    ; create mask = 0765
    I use networkmanager, and samba is the last daemon to start....

    Hi I have exactly the same problem. I'm pretty sure that somehow is related with the hardware of the computer, as only one of my computers seems to be affected by this problem. I'm I a networkmanager user. I have solved the issue by taking away samba from the daemons array in /etc/rc.conf (in fact I putted a ! in front what is the same). An the following the suggestion up. I have made a script "/etc/NetworkManager/dispatcher.d/30_samba":
    #!/bin/sh
    INTERFACE=$1 # The interface which is brought up or down
    STATUS=$2 # The new state of the interface
    case "$STATUS" in
    'up') # $INTERFACE is up
    exec /etc/rc.d/samba start
    'down') # $INTERFACE is down
    # Check for active interface and down if no one active
    if [ ! `nm-tool|grep State|cut -f2 -d' '` = "connected" ]; then
    exec /etc/rc.d/samba stop
    fi
    esac
    as indicated in wiki networkmanager and pointed above.  Finally, I set the permission for "30_samba" scrip to 755 and the ownership to root:root. Now it works.
    Note: If I leave the samba daemon in the array or background it I get a weird problem as only the nmbd but not smbd in up after reboot.
    I hope it helps to others. Still I found very weird this behaviour. It has been going on for a long while with this computer although I was lazy to dig in the reasons until now. I will really appreciate if someone more skilful could have a look to the problem.
    Last edited by hseara (2011-10-30 10:55:13)

  • Terminal command to refresh USB peripheral device

    I'm running OS 10.7.5, and I have a recurring problem with the USB ports on my Mac mini.  After several days of up-time, one or more of the ports will sometimes become non-responsive.  This seems to be software related, because logging off and logging back into the machine always fixes the problem (as does a restart and a cold-reboot).  I was thinking maybe the "checklist" of device filenames somehow gets corrupted over time, and needs to be recreated.
    Does anyone know how to refresh the list of peripheral devices without restarting, rebooting, or logging off?  Ideally a terminal command?  I'm hoping not to have to keep shutting down the session each time this happens to get my list of connected devices back.
    Thanks very much for your suggestions for the newbie.

    Hi Korby,
    If you are having difficulties with USB devices such as you describe, I would suggest resetting your Mac mini’s parameter RAM, as described in this article -
    About NVRAM and PRAM
    http://support.apple.com/kb/HT1379
    Specifically -
    Resetting NVRAM / PRAM
    Shut down your Mac.
    Locate the following keys on the keyboard: Command (⌘), Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • Terminal command to lock and unlock the dock?

    Hello,
    I manage hundreds of iMacs running Yosemite at a school site.  I use parental controls with the lock dock feature turned on.  I would like to periodically unlock the dock to customize it with new icons, but have not found a terminal command that works, or a streamlined process that is time efficient.
    So far I have been individually unlocking the dock in parent controls on each machine, restarting, editing the dock, then re-locking it parental controls, then restarting.  This takes 5-10 minutes per machine). 
    I also tried this command but it didn't work.
    defaults write com.apple.dock contents-immutable -bool true; killall Dock;
    I also tried cloning the parental controls with an exported plist file to all the machines using ARD, which works for all the parental control settings EXCEPT for the lock dock feature.
    Any ideas?
    Cheers,
    Crystal

    Sorry this is probably too late for you, but it may help others seeking this answer, I just had this problem [Mac OS x Yosemite 10.10.2] and found that the following worked for me:
    1. Use Terminal to LOCK the Dock by C&P or typing in:
    defaults write com.apple.dock contents-immutable -bool true
    Then use your preferred method to Log-Out [e.g. Key Combo ⇧⌘Q or  [Top Left Menu] then select Log Out “name”]
    and then Log-In again.
    2. Use Terminal to UNLOCK the Dock by C&P or typing in:
    defaults write com.apple.dock contents-immutable -bool false
    Then use your preferred method to Log-Out [e.g. Key Combo ⇧⌘Q or  [Top Left Menu] then select Log Out “name”]
    and then Log-In again.
    NB. You will be solely responsible for your actions making changes to the Operating System.

  • #30 | can i run the Terminal Command to stop Snapshots with no problems?

    i am somewhat surprised to find out that the 75 GB of "Backups" that are taking up space on my MBP may be due to some "feature" in Mavericks or the new OS's or whatever and i have had to MOVE all my data off my laptop as a consequence of this over the last two months because i have no more space on my Hard Drive.
    is it legit and OK to follow the terminal commands in #30 without having any problems?
    i am on a mid 2009 MBP running Mavericks and i have a 2 TB Time Capsule that i am wirelessly backing up my data.
    as some kind of sadistic test in advance of running this terminal command - can i plug my laptop into the Time Capsule, unplug the laptop from the time capsule, restart and see how much space got recaptured on my HD for my data?
    i mean, well - i must be missing something but i mean i am hoping i can get this to stop so i can get my data back on my laptop. i'm walking around with an external HD of all my Mac Pro information just so i can get work done when i go to a coffee shop or something.

    for those suffering through this:
    https://discussions.apple.com/message/24878591#24878591
    In Terminal:
         sudo tmutil disablelocal
    Turn off local Time Machine snapshots and trigger automatic cleanup of accumulated local snapshot data. Requires root privileges.
    (use sudo tmutil enablelocal to turn back on)
    this got rid of my 75 GB backup file (!!) and now i am going to move my data back to my laptop...
    not sure if there is an apple tech article to link to regarding this issue but it would be good to post if there is one.

  • Need a Terminal Command

    Hi, I have no idea how to use terminal so I need code I can copy and paste. I am running iFreeMem and its crashed. These type of apps do not show up in the force quit box so I have no idea how to force quit it. My only idea was Terminal but I don't know how to do it.
    Can someone please help? Has this ever happened to anyone? I just read some articles that made me decide to trash the app altogether, but I need to get it closed first. :o)
    I have to many things going on to shut the computer down at the moment and the iFreeMem screen is in the way of everything (floats on top). Thanks in advance!

    You must know either the correct case sensitive name of the application, such as iFreeMem. If you do then the Terminal command is:
    killall iFreeMem
    Press RETURN.
    However, even though iFreeMem is an application it may fork a process with a different identifier. If so the above command will fail. In this case you need to find the PID - Process IDentifier. In the Terminal enter, top, and press RETURN. If the process is in the listing then you get the PID from the lefthand column. Use the same killall command but with the PID instead of the application name.
    If you cannot find a PID, then you need to restart the computer. If the application runs automatically then you need to uninstall its components. See the following:
    Uninstalling Software: The Basics
    Most OS X applications are completely self-contained "packages" that can be uninstalled by simply dragging the application to the Trash. Applications may create preference files that are stored in the /Home/Library/Preferences/ folder. Although they do nothing once you delete the associated application, they do take up some disk space. If you want you can look for them in the above location and delete them, too.
    Some applications may install an uninstaller program that can be used to remove the application. In some cases the uninstaller may be part of the application's installer, and is invoked by clicking on a Customize button that will appear during the install process.
    Some applications may install components in the /Home/Library/Applications Support/ folder. You can also check there to see if the application has created a folder. You can also delete the folder that's in the Applications Support folder. Again, they don't do anything but take up disk space once the application is trashed.
    Some applications may install a startupitem or a Log In item. Startupitems are usually installed in the /Library/StartupItems/ folder and less often in the /Home/Library/StartupItems/ folder. Log In Items are set in the Accounts preferences. Open System Preferences, click on the Accounts icon, then click on the LogIn Items tab. Locate the item in the list for the application you want to remove and click on the "-" button to delete it from the list.
    Some software use startup daemons or agents that are a new feature of the OS. Look for them in /Library/LaunchAgents/ and /Library/LaunchDaemons/ or in /Home/Library/LaunchAgents/.
    If an application installs any other files the best way to track them down is to do a Finder search using the application name or the developer name as the search term. Unfortunately Spotlight will not look in certain folders by default. You can modify Spotlight's behavior or use a third-party search utility, Easy Find, instead. Download Easy Find at VersionTracker or MacUpdate.
    Some applications install a receipt in the /Library/Receipts/ folder. Usually with the same name as the program or the developer. The item generally has a ".pkg" extension. Be sure you also delete this item as some programs use it to determine if it's already installed.
    There are also several shareware utilities that can uninstall applications:
    AppZapper
    Automaton
    Hazel
    CleanApp
    Yank
    SuperPop
    Uninstaller
    Spring Cleaning
    Look for them at VersionTracker or MacUpdate.
    For more information visit The XLab FAQs and read the FAQ on removing software.

  • Undo terminal command

    I recently followed these instructions to stop iTunes from automatically downloading tv shows every time I opened it:
    With iTunes open select iTunes > Preferences... and click the Store tab
    If checked, uncheck checkbox Always check for available downloads
    If checked, uncheck checkbox Download pre-orders when available
    Click the OK button, and close iTunes
    Open Applications > Utilities > Terminal.app
    Type cd ~/Music/iTunes/iTunes\ Media/Downloads then press <Enter>
    Type rm -rf * to delete the plist file along with all of the downloads of TV shows
    Re-open iTunes. There shouldn't be TV shows automatically downloading any longer when you open iTunes. Breath. Relax. Rejoice.
    The result was, on restarting the computer, that all my documents, iPhoto library, iTunes library, and Mail folders were gone. I realize now that I'm not expert enough be running Terminal commands. My question is: is there any way to undo this damage?

    If you don't have a backup of them, try using a data recovery product such as the ones listed here. Don't write anything else to the drive until the files are recovered or you choose not to recover them.
    (113837)

  • Filevault encryption paused, despite reset of PRAM and using terminal commands

    I have been trying to partition my HDD but am unable to because file vault encryption is paused - and has been since October 2014.
    I attempted making a new user to see if this would bypass it, but it didn't.
    I have reset the PRAM and have repaired the HDD both in recovery and normal, neither work.
    I have also used terminal command "sudo fdesetup disable" to attempt turning it off, but that doesn't work either.
    Help please??
    Harry

    If you don't already have a current backup of all data, back up before proceeding. There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    Start up in Recovery mode. When the OS X Utilities screen appears, select Disk Utility.
    In the Disk Utility window, select the icon of the startup volume from the list on the left. It will be nested below another disk icon, usually with the same name. Click the Unlock button in the toolbar. When prompted, enter the login password of a user authorized to unlock the volume, or the alternate decryption key that was generated when you activated FileVault.
    Then, from the menu bar, select
              File ▹ Turn Off Encryption
    Enter the password again.
    You can then restart as usual, if the system is working. Decryption will be completed in the background. It may take several hours, and during that time performance will be reduced.
    If you can't turn off encryption in Disk Utility because the menu item is grayed out, you'll have to erase the volume and then restore the data from a backup. Select the Erase tab, and then select
              Mac OS Extended (Journaled)
    from the Format menu.
    You can then quit to be returned to the main Recovery screen. Follow these instructions if you back up with Time Machine. If you use other backup software, follow its developer's instructions.
    Don't erase the volume unless you have at least two complete, independent backups. One is not enough to be safe.

  • Computer not obeying terminal commands

    I've been trying to eject a disk using the Terminal command "drutil tray eject" (the eject button isn't working and the computer is in denial about the disk being there- except iTunes which crashes every time I tell it to eject the disk). The Terminal is pretending that it is Text Edit- it sends me no responses to anything I type (I tried several other basic commands- nada). I tried changing my preferences in Terminal and got a response which told me what my command was supposed to do, but didn't obey the command. I got the disk out using the mouse method- but I just want the computer to obey my commands. What should I do?

    1.dragging and dropping the icon for the CD into your trashcan
    2. Restart the computer and after the chime press and hold down the left mouse button until the disc ejects.
    3. Press the Eject button on your keyboard.
    4. Click on the Eject button in the menubar.
    5. Press COMMAND-E.
    6. Open the Terminal application in your Appl/Utilities folder. copy & paste the following:
    /usr/bin/drutil eject
    If this fails then try this:
    Boot the computer into single-user mode (hold down ⌘ -S through the boot process.)  At the prompt copy & paste:
    /usr/bin/drutil eject
    Restart the computer enter reboot at the prompt or shutdown
    7.  restart hold down trackpad button

  • Applescript to run terminal command then open application..

    Hey,
    I've installed the add-on to make the Lion Finder sidebar icons colored again, but whenever I reboot my Mac, I have to execute a killall Finder to get those icons back. This also closes TotalFinder, which is an addon I use. So, I want to write an AppleScript which will run on startup, and do those two things: run the Terminal command, and then open TotalFinder.
    I've written:
    tell application "Terminal"
        activate
        do script "killall Finder" in front window
        quit
    end tell
    tell application "TotalFinder"
        activate
    end tell
    This gives me an error stating "Connection is invalid." when running the activate line for TotalFinder. The Terminal command is executed correctly. Any idea why this is? The application is definitely named correctly, its just in my root Applications directory so it should be able to find it, etc. How can I get this working?
    Thanks!

    try this:
    do shell script "killall Finder"
    tell application "TotalFinder"
              try
      activate
              end try
    end tell
    First thing you don't need to open a terminal window to do the killall you can just do to as a shell script.
    Second don't know why TotalFinder gives that message about Connection invalid but it doesn;t seem to affect it any. So putting in the try just eats the error message.
    Ypu may not even need the killall, When TotalFinder starts it restarts the Finder so you may be able to remove the killall
    regards

  • Terminal Command to Log Out User

    I have Fast User Switching enabled. I would like to log users out that forgot to log out. What are the Terminal commands to log out someone named Alice who is a Standard user in OS X.3.9? I'm getting tired of having to restart to shut down the users account. Will the commands be the same for an Administrators account?
    Thanks for your help,
    G4 Quicksilver Dual 1 GHz, 1.5 GB RAM, Sonnet ATA133 card, Maxtor ATA133 drives   Mac OS X (10.3.9)   B+W G3 450 MHz, OS 9.2.2, 1 GB RAM

    If you're the Admin, then you should be able to use Terminal as root to log someone out like this:
    sudo killall -u [username]
    This should kill all processes in that user account, and it may log them out also (I can't test this on a single user machine). If it doesn't, you can use:
    sudo shutdown now
    which will log out everyone and shutdown the system to single-user mode for the root/Admin user.
    Hope this helps,
    Mulder
    If my answer helped solve your problem, please consider awarding some points. Why Reward Points?
    iMac G4 700Mhz   Mac OS X (10.3.9)  

Maybe you are looking for

  • I have a photosmart plus B209a but when I scan into my PC i only have the option of sending it to p

    B209a when I scan a document into my computer I only have the option of sending it into my pictures, I cannot send it to documents or to Adobe reader. As this is not something I need very often but once in awhile I need to convert a document into PDF

  • Disk almost full

    How do I fix this? I have this message that keeps popping up that says, "Start up disk almost full." I have reset my cache in safari, deleted as many photos as I could, but it still says the same thing. What should I do? Thanks so much! Also, I looke

  • Resetting PRAM without USB ports functional

    Hello, I've been searching for a solution to this but to no avail. I had my 2008 Mac Pro unpugged for a few days. When I turned it back on the USB ports weren't functioning.  I can't reset the PRAM as my keyboard is not working.  Any ideas? Thanks in

  • Problems with a Business Object when using data RAW.

    Hi,   I've created a Z bapi with parameter tables as     FILE_BIN like SDOKCNTBIN The structure SDOKCNTBIN has one RAW field. When I go to SWO1 and implement a new Bapi, the following error occurs: "Field SDOKCNTBIN -LINE is too large to be included

  • Safari 5.1.3 Reinstall After 10.7.3 Update

    So I downloaded and installed the new 10.7.3 software update which also included the new Safari browser. Everything appeared to go smoothly but when I opened Safari I was unable to go to any web pages. I reset Safari, cleared cache etc. NO LUCK! So I