Sudo does not work...

Hi I have created a new user and added them to the wheel group but they are still not able to use the sudo command. how can I fix this?

You need to set up sudo. The default configuration doesn't give any rights to any group or user.
As root type
visudo
There you will see some examples.
You are also encouraged to read the sudo man page.
Last edited by moljac024 (2008-03-02 10:40:30)

Similar Messages

  • In the context of restoring a drive from a backup, i copied /etc/sudoers from my backup. Now it does not work due to the permissions not being correct (even though it was copied via sudo cp -rp)

    In the context of restoring a drive from a backup, i copied /etc/sudoers from my backup. Now it does not work due to the permissions not being correct (even though it was copied via sudo cp -rp)

    Most likely you have Office 2004 which are PPC-only applications and will not work in Lion. Upgrade to Office 2011. Other alternatives are:
    Apple's iWork suite (Pages, Numbers, and Keynote.)
    Open Office (Office 2007-like suite compatible with OS X.)
    NeoOffice (similar to Open Office.)
    LibreOffice (a new direction for the Open Office suite.)

  • I want to disable 'Spotlight' for repairing my disk "Macintosh HD" , but somehow the command 'sudo mdutil -a -i off' does not work in 'Terminal'. I get result as ' bash: sudo: command not found' .I am using OS 10.10.  Please help.

    I want to disable 'Spotlight' for repairing my disk "Macintosh HD" , but somehow the command 'sudo mdutil -a -i off' does not work in 'Terminal'. I get result as ' bash: sudo: command not found' .I am using OS 10.10.  Please help.

    It appears that you may not have a properly installed OS X system.
    You must be connected to the Internet to reinstall OS X.
    In the menu bar, choose Apple menu > Restart. Once your Mac restarts (and the gray screen appears), hold down the Command (⌘) and R keys.
    Select “Disk Utility,” and then click Continue.
    Select your startup disk from the list on the left, and then Repair Disk.
    After disk is repaired, select Reinstall OS X, then click Continue.
    Follow the onscreen instructions. In the pane where you select a disk, select your current OS X disk

  • ( SOLVED )gnome-terminal, su, sudo, gksu, gksudo does not work

    Hello,
    In my fresh installed gnome3 graphical environment, in gnome-terminal, I can not gain root access.
    I've tried diverse su commands.
    1. su command, ends with:
    su -
    Password:
    su: Authentication failure
    2. sudo command, ends with:
    sudo -l
    [sudo] password for root:
    Sorry, try again.
    [sudo] password for root:
    Sorry, try again.
    [sudo] password for root:
    sudo: 2 incorrect password attempts
    Of course - each time, I typed correct password.
    In my sudoers file, group wheel ( into which belongs user I logged in ) has permissions to execute any command.
    3. gksudo with debug:
    gksudo -ld gnome-terminal
    No ask_pass set, using default!
    xauth: /tmp/libgksu-stbGos/.Xauthority
    STARTUP_ID: gksudo/gnome-terminal/879-0-Bex_TIME0
    cmd[0]: /usr/bin/sudo
    cmd[1]: -H
    cmd[2]: -S
    cmd[3]: -p
    cmd[4]: GNOME_SUDO_PASS
    cmd[5]: -u
    cmd[6]: root
    cmd[7]: --
    cmd[8]: gnome-terminal
    buffer: -GNOME_SUDO_PASS-
    brute force GNOME_SUDO_PASS ended...
    Yeah, we're in...
    sudo: 1 incorrect password attempt
    xauth: /tmp/libgksu-stbGos/.Xauthority
    xauth_env: /var/run/gdm/auth-for-tangram-9JYTNt/database
    dir: /tmp/libgksu-stbGos
    I've been asked for my password, not root, after typing I get "incorrect password attempt", if I type root pwd I get the same.
    4. Same with this command:
    gksu -ld gnome-terminal
    No ask_pass set, using default!
    xauth: /tmp/libgksu-SBPcOB/.Xauthority
    STARTUP_ID: gksu/gnome-terminal/1028-0-Bex_TIME0
    cmd[0]: /usr/bin/sudo
    cmd[1]: -H
    cmd[2]: -S
    cmd[3]: -p
    cmd[4]: GNOME_SUDO_PASS
    cmd[5]: -u
    cmd[6]: root
    cmd[7]: --
    cmd[8]: gnome-terminal
    buffer: -GNOME_SUDO_PASS-
    brute force GNOME_SUDO_PASS ended...
    Yeah, we're in...
    sudo: 1 incorrect password attempt
    xauth: /tmp/libgksu-SBPcOB/.Xauthority
    xauth_env: /var/run/gdm/auth-for-tangram-6RCSoJ/database
    dir: /tmp/libgksu-SBPcOB
    In multi-user-mode I can login to root account.
    Last edited by tangram (2013-12-23 08:42:09)

    tangram wrote:
    Hurrican, ok, there is no need to install antother terminal, as I wrote it did not work also in xterm.
    Yesterday evening, tired and sad that gk(su|sudo) still does not work,
    as the "last chance idea", I logged in into multi-user mode ( init level 3 ) and changed root's password,
    then loged in into graphical mode ( init level 5 ), start gnome-terminal and suddenly ... command "su -" started to work.
    By the way, similar solution ( but with chroot ) has suggested Gulver in his post ( this thread, answer #2 ).
    The question is, why root's password, set during install, after finished installation is recognized in text mode, but not im graphical ?
    First root's password was really simple, like "dog4356", without any national chars.
    You're right. I don't even have xterm installed so I guess I just singled out gnome-terminal and forgot that xterm also wasn't working.
    Forgive me for my shaky advice. Like you I've been super busy, and sweating out a fever of 102 degrees (that's Fahrenheit no my
    blood wasn't boiling ). Anyways, glad you got it working. After reading over the whole thread and thinking about it for a little bit, I
    can't really make a good guess as to what was happening.
    I'm sure you probably had tried this, but you could have typed the password out in the command line so you could see it. If there was
    something wrong with it, it would have shown up there as well. If it was perfectly fine, then it would have been very, very weird.
    The important thing is you got it working.
    Merry Christmas.

  • External USB HD does not work with HAL:

    External USB HD does not work with HAL:
    From the last 10 days the HAL auto-mount with ntfs-3g file system of my external hard drive  does not woks.
    But the manual mount procedure with the command mount -t ntfs-3g /dev/sdb* /mnt/XYZ works.
    I've followed the instructions in the wiki: http://wiki.archlinux.org/index.php/HAL and the system has worked up to the last kernel or HAL update.
    My fat32 usb-stick works without any problem.
    If I try to open the device with KDE it appears an error popup wit this message:
    TODO: have to rethink extra options
    Error: kio_media_mount_helper
    The log from the kernel.log is
    Nov 6 22:03:16 myhost usb 5-1: new high speed USB device using ehci_hcd and address 4
    Nov 6 22:03:16 myhost usb 5-1: configuration #1 chosen from 1 choice
    Nov 6 22:03:17 myhost Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
    Nov 6 22:03:17 myhost ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
    Nov 6 22:03:17 myhost Initializing USB Mass Storage driver...
    Nov 6 22:03:17 myhost scsi6 : SCSI emulation for USB Mass Storage devices
    Nov 6 22:03:17 myhost usb-storage: device found at 4
    Nov 6 22:03:17 myhost usb-storage: waiting for device to settle before scanning
    Nov 6 22:03:17 myhost usbcore: registered new interface driver usb-storage
    Nov 6 22:03:17 myhost USB Mass Storage support registered.
    Nov 6 22:03:22 myhost scsi 6:0:0:0: Direct-Access WDC WD32 00JB-00KFA0 0811 PQ: 0 ANSI: 0
    Nov 6 22:03:22 myhost sd 6:0:0:0: [sdb] 625142448 512-byte hardware sectors (320073 MB)
    Nov 6 22:03:22 myhost sd 6:0:0:0: [sdb] Test WP failed, assume Write Enabled
    Nov 6 22:03:22 myhost sd 6:0:0:0: [sdb] Assuming drive cache: write through
    Nov 6 22:03:22 myhost sd 6:0:0:0: [sdb] 625142448 512-byte hardware sectors (320073 MB)
    Nov 6 22:03:22 myhost sd 6:0:0:0: [sdb] Test WP failed, assume Write Enabled
    Nov 6 22:03:22 myhost sd 6:0:0:0: [sdb] Assuming drive cache: write through
    Nov 6 22:03:22 myhost sdb: sdb1
    Nov 6 22:03:22 myhost sd 6:0:0:0: [sdb] Attached SCSI disk
    Nov 6 22:03:22 myhost sd 6:0:0:0: Attached scsi generic sg2 type 0
    Nov 6 22:03:22 myhost usb-storage: device scan complete
    and the error.log is
    Nov 6 22:03:22 myhost sd 6:0:0:0: [sdb] Assuming drive cache: write through
    Nov 6 22:03:22 myhost sd 6:0:0:0: [sdb] Assuming drive cache: write through
    Do you have some idea ....
    Bye.

    I have done the following:
    Downloaded the patched hal version.
    used makepkg in /abs/local/trunk/ to create a pkg for pacman
    used sudo pacman -U pkgname to install it.
    used sudo nano /etc/hal/fdi/policy/preferences.fdi to create the fdi file with the following content:
    saved the file and removed my ntfs entryes from fstab and rebooted. and still there is no automount off ntfs partitions.
    have i done something wrong?
    br fjodork
    WARNING: what follows is a guide of what did work for me, I'm still in an early stage of learning linux, so please correct me if anything of what follows is wrong/dangerous/stupid. As I said, this worked for me, it's not pretty, since I was learning each step on the fly and I'm sure there are better ways to do this.
    So fjodork, you seem to have done the the necessary steps, though i couldn't get it to work until i first removed hal without dependencies
    pacman -Rd hal
    it will give you some warning about the dependencies, ignore  it since we are reinstalling hal in a few steps.
    First i tried to follow Raymano's link, obviously it showed me nothing in the browser so I thought it might be a broken link.
    So I downloaded the source tarball from here http://hal.freedesktop.org/releases/hal-0.5.10.tar.gz
    unpacked it changed the /tools/hal-storage-mount.c as per Milfadoodle's instructions.
    at first I tried to compile directly from source, the process would finish without a glitch though after reboot nothing changed, as if hal weren't
    installed, i guess there were issues with paths. anyway read on
    Then repacked the source in tarball, copied it to /var/abs/extra/system/hal and modified the PKGBUILD as follows
    makedepends=('pkgconfig' 'gperf')
    options=('!libtool')
    install=hal.install
    source=(${pkgname}-${pkgver}.tar.gz #removed url so makepkg looks in the current directory for the tarball
        hal
        hal-policy.patch
        cryptsetup_location.patch
        hal-0.5.9-hide-diagnostic.patch
        ntfs3g-valid-options.patch)
    md5sums=('6641c30a27c00485c6accac5110ff911' # replace with md5sum of your package's sourceball (run md5sum filename)
             '882f67668cb14a0a9e4a27ef22278027'
             '5ba8b610aa9763a5f42b9f7cbd7a86ad'
    then makepkg (i had to add --asroot, don't ask why
    and finally pacman -U hal-0.5.10-1-i686.pkg
    another reboot and everything worked without a glitch!:D (yeah i know i still haven't got rid of the reboot mentality )
    I have also put the policy files as per the wiki instructions.
    PS: I know this is a dirty way to getting things done but as i said, I'm just starting
    If anyone could comment/correct/explain this post I'd be more than happy, the automount issue was bothering me for about a month now (you'll say why do I need ntfs in the first place? well, I only recently switched for Linux as my primary OS, these are some relics of the M$ era

  • Caldav does not work after upgrade from 10.6.8

    Hello!
    After upgrading two test servers from 10.6.8 to 10.7.2 with no problems i decided last night it is time to upgrade our production server.
    Took sometime but everything went well except for caldav service. If I understand the log right the migration to lion-calendars crashes when the script wants to put the calendars from filesystem into a database.
    After reboot the script runs into the same error.
    BTW the notification service does not work also. But that is not very important.
    Every help is appreciated, bye
    eweri
    Here is the part of the log file:
    more /var/log/caldavd/error.log
    2011-10-26 08:28:33+0200 [-] Log opened.
    2011-10-26 08:28:33+0200 [-] twistd 11.0.0 (/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/ Contents/MacOS/Python 2.7.1) starting up.
    2011-10-26 08:28:33+0200 [-] reactor class: twext.internet.kqreactor.KQueueReactor.
    2011-10-26 08:28:33+0200 [-] calendarserver.accesslog.AMPLoggingFactory starting on "'/var/run/caldavd/caldavd.sock'"
    2011-10-26 08:28:33+0200 [-] calendarserver.tap.caldav.CalDAVStatisticsServer starting on "'/var/run/caldavd-stats.sock'"
    2011-10-26 08:28:33+0200 [-] [twistedcaldav.upgrade#warn] Upgrading to version 2
    2011-10-26 08:28:33+0200 [-] [twistedcaldav.upgrade#warn] Regular collection hidden: /Library/Server/Calendar and Contacts/Documents/calendars/__uids__/13/93/139328E4-76C8-427C-AD0C-CB6D102C7D7 F/outbox
    2011-10-26 08:28:33+0200 [-] [twistedcaldav.upgrade#warn] Regular collection hidden: /Library/Server/Calendar and Contacts/Documents/calendars/__uids__/21/D0/21D05230-A847-4B8D-B810-CFE793F634C B/outbox
    2011-10-26 08:28:33+0200 [-] [twistedcaldav.upgrade#warn] Regular collection hidden: /Library/Server/Calendar and Contacts/Documents/calendars/__uids__/84/5E/845E1E6D-F13B-4233-A4E5-0055F085388 1/outbox
    2011-10-26 08:28:33+0200 [-] [twistedcaldav.upgrade#warn] Regular collection hidden: /Library/Server/Calendar and Contacts/Documents/calendars/__uids__/B5/B6/B5B6BAA3-A5E0-4526-B7F3-15DC2811E08 3/outbox
    2011-10-26 08:28:33+0200 [-] [twistedcaldav.upgrade#warn] Regular collection hidden: /Library/Server/Calendar and Contacts/Documents/calendars/__uids__/E0/2B/E02BEF32-1714-4C5B-85DF-0184DA8B313 3/outbox
    2011-10-26 08:28:33+0200 [-] [twistedcaldav.upgrade#warn] Regular collection hidden: /Library/Server/Calendar and Contacts/Documents/calendars/__uids__/E2/64/E264473A-CEC7-4E1A-9756-59DE5AF62E5 0/outbox
    2011-10-26 08:28:33+0200 [-] [twistedcaldav.upgrade#warn] Regular collection hidden: /Library/Server/Calendar and Contacts/Documents/calendars/__uids__/wi/ki/wiki-zm-r/inbox
    2011-10-26 08:28:33+0200 [-] [twistedcaldav.upgrade#warn] Upgraded to version 2
    2011-10-26 08:28:33+0200 [-] [txdav.common.datastore.util.UpgradeDatabaseSchemaService#warn] Beginning database schema check.
    2011-10-26 08:28:33+0200 [-] [txdav.common.datastore.util.UpgradeDatabaseSchemaService#warn] Required schema version: 3.
    2011-10-26 08:28:33+0200 [-] [txdav.common.datastore.util.UpgradeDatabaseSchemaService#warn] Actual schema version: 3.
    2011-10-26 08:28:33+0200 [-] [txdav.common.datastore.util.UpgradeDatabaseSchemaService#warn] Schema version check complete: no upgrade needed.
    2011-10-26 08:28:33+0200 [-] [txdav.common.datastore.util.UpgradeDatabaseSchemaService#warn] Database schema check complete, launching database service.
    2011-10-26 08:28:33+0200 [-] [txdav.common.datastore.util.UpgradeToDatabaseService#warn] Beginning filesystem -> database upgrade.
    2011-10-26 08:28:33+0200 [-] [txdav.common.datastore.util.UpgradeToDatabaseService#warn] Migrating calendar UID 'XXXXXXXX-07B1-4733-AE89-8728D0C2CB4A'
    2011-10-26 08:28:34+0200 [-] [txdav.common.datastore.util.UpgradeToDatabaseService#warn] Migrating calendar UID 'XXXXXXXX-5E85-4CC9-902A-A101164BD83F'
    2011-10-26 08:28:34+0200 [Uninitialized] [twistedcaldav.notify.NotificationClientFactory#error] Unable to connect to notification server: [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionRefusedError'>: Connection was refused by other side: 61: Connection refused.
    2011-10-26 08:28:34+0200 [-] [txdav.common.datastore.util.UpgradeToDatabaseService#warn] Migrating calendar UID 'XXXXXXXX-76C8-427C-AD0C-CB6D102C7D7F'
    2011-10-26 08:28:37+0200 [Uninitialized] [twistedcaldav.notify.NotificationClientFactory#error] Unable to connect to notification server: [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionRefusedError'>: Connection was refused by other side: 61: Connection refused.
    2011-10-26 08:28:46+0200 [Uninitialized] [twistedcaldav.notify.NotificationClientFactory#error] Unable to connect to notification server: [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionRefusedError'>: Connection was refused by other side: 61: Connection refused.
    2011-10-26 08:28:58+0200 [-] [txdav.common.datastore.util.UpgradeToDatabaseService#warn] Migrating calendar UID 'XXXXXXXX-A847-4B8D-B810-CFE793F634CB'
    2011-10-26 08:28:59+0200 [-] [txdav.common.datastore.util.UpgradeToDatabaseService#warn] Migrating calendar UID 'XXXXXXXX-6E96-4671-9BEB-FAABDB623EA3'
    2011-10-26 08:28:59+0200 [-] [txdav.common.datastore.util.UpgradeToDatabaseService#warn] Migrating calendar UID 'XXXXXXXX-C56A-462D-90E0-D60285CCF751'
    2011-10-26 08:28:59+0200 [-] [txdav.common.datastore.util.UpgradeToDatabaseService#warn] Migrating calendar UID 'XXXXXXXX-F13B-4233-A4E5-0055F0853881'
    2011-10-26 08:29:07+0200 [Uninitialized] [twistedcaldav.notify.NotificationClientFactory#error] Unable to connect to notification server: [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionRefusedError'>: Connection was refused by other side: 61: Connection refused.
    2011-10-26 08:29:11+0200 [-] [txdav.common.datastore.util.UpgradeToDatabaseService#warn] Migrating calendar UID 'XXXXXXXX-A2A9-4B21-8735-577F24ABA6D5'
    2011-10-26 08:29:11+0200 [-] [txdav.common.datastore.util.UpgradeToDatabaseService#warn] Migrating calendar UID 'XXXXXXXX-7A55-4B63-AC42-43151A1F4810'
    2011-10-26 08:29:11+0200 [-] [txdav.common.datastore.util.UpgradeToDatabaseService#warn] Migrating calendar UID 'XXXXXXXX-F38C-489D-88A2-42B5F47BB4AD'
    2011-10-26 08:29:11+0200 [-] [txdav.common.datastore.util.UpgradeToDatabaseService#warn] Migrating calendar UID 'XXXXXXXX-A5E0-4526-B7F3-15DC2811E083'
    2011-10-26 08:29:12+0200 [-] [txdav.common.datastore.util.UpgradeToDatabaseService#warn] Migrating calendar UID 'XXXXXXXX-97BE-43C3-94F7-A8C99AB92425'
    2011-10-26 08:29:12+0200 [-] [txdav.common.datastore.util.UpgradeToDatabaseService#warn] Migrating calendar UID 'XXXXXXXX-9C74-412D-8DC0-69E3ED918CAD'
    2011-10-26 08:29:13+0200 [-] [txdav.common.datastore.util.UpgradeToDatabaseService#warn] Migrating calendar UID 'XXXXXXXX-D6BD-450E-A8A1-708C063EF05F'
    2011-10-26 08:29:13+0200 [-] [txdav.common.datastore.util.UpgradeToDatabaseService#warn] Migrating calendar UID 'XXXXXXXX-EC4C-43B6-A6A8-EA02F4024EB3'
    2011-10-26 08:29:14+0200 [-] [txdav.common.datastore.util.UpgradeToDatabaseService#warn] Migrating calendar UID 'XXXXXXXX-1714-4C5B-85DF-0184DA8B3133'
    2011-10-26 08:29:15+0200 [-] [txdav.common.datastore.util.UpgradeToDatabaseService#warn] Migrating calendar UID 'XXXXXXXX-CEC7-4E1A-9756-59DE5AF62E50'
    2011-10-26 08:29:26+0200 [-] [txdav.common.datastore.util.UpgradeToDatabaseService#warn] Migrating calendar UID 'XXXXXXXX-E113-470C-A824-0D988A8319FB'
    2011-10-26 08:29:30+0200 [-] [txdav.common.datastore.util.UpgradeToDatabaseService#warn] Migrating calendar UID 'wiki-XXXXXXXX'
    2011-10-26 08:29:32+0200 [-] [txdav.common.datastore.util.UpgradeToDatabaseService#warn] Migrating calendar UID 'wiki-XXXXXXXX'
    2011-10-26 08:29:32+0200 [-] [txdav.common.datastore.util.UpgradeToDatabaseService#warn] Migrating calendar UID 'wiki-XXXXXXXX'
    2011-10-26 08:29:33+0200 [-] Unhandled error in Deferred:
    2011-10-26 08:29:33+0200 [-] Unhandled Error
            Traceback (most recent call last):
              File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/defer.py", line 361, in callback
                self._startRunCallbacks(result)
              File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/defer.py", line 455, in _startRunCallbacks
                self._runCallbacks()
              File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/defer.py", line 542, in _runCallbacks
                current.result = callback(current.result, *args, **kw)
              File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/defer.py", line 1076, in gotResult
                _inlineCallbacks(r, g, deferred)
            --- <exception caught here> ---
              File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/defer.py", line 1020, in _inlineCallbacks
                result = g.send(result)
              File "/usr/share/caldavd/lib/python/txdav/common/datastore/util.py", line 146, in doMigration
                uid = fileHome.uid()
            exceptions.AttributeError: 'NoneType' object has no attribute 'uid'
    2011-10-26 08:30:13+0200 [Uninitialized] [twistedcaldav.notify.NotificationClientFactory#error] Unable to connect to notification server: [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionRefusedError'>: Connection was refused by other side: 61: Connection refused.
    2011-10-26 08:33:19+0200 [Uninitialized] [twistedcaldav.notify.NotificationClientFactory#error] Unable to connect to notification server: [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionRefusedError'>: Connection was refused by other side: 61: Connection refused.
    2011-10-26 08:42:07+0200 [Uninitialized] [twistedcaldav.notify.NotificationClientFactory#error] Unable to connect to notification server: [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionRefusedError'>: Connection was refused by other side: 61: Connection refused.
    2011-10-26 09:06:13+0200 [Uninitialized] [twistedcaldav.notify.NotificationClientFactory#error] Unable to connect to notification server: [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionRefusedError'>: Connection was refused by other side: 61: Connection refused.
    2011-10-26 09:44:28+0200 [-] Received SIGTERM, shutting down.
    2011-10-26 09:44:28+0200 [-] (UNIX Port '/var/run/caldavd-stats.sock' Closed)
    2011-10-26 09:44:28+0200 [-] (UNIX Port '/var/run/caldavd/caldavd.sock' Closed)
    2011-10-26 09:44:28+0200 [-] Main loop terminated.
    2011-10-26 09:44:29+0200 [-] Server Shut Down.
    2011-10-26 09:46:13+0200 [-] Log opened.
    2011-10-26 09:46:13+0200 [-] twistd 11.0.0 (/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/ Contents/MacOS/Python 2.7.1) starting up.
    2011-10-26 09:46:13+0200 [-] reactor class: twext.internet.kqreactor.KQueueReactor.
    2011-10-26 09:46:13+0200 [-] calendarserver.accesslog.AMPLoggingFactory starting on "'/var/run/caldavd/caldavd.sock'"
    2011-10-26 09:46:13+0200 [-] calendarserver.tap.caldav.CalDAVStatisticsServer starting on "'/var/run/caldavd-stats.sock'"
    2011-10-26 09:46:13+0200 [-] [txdav.common.datastore.util.UpgradeDatabaseSchemaService#warn] Beginning database schema check.
    2011-10-26 09:46:13+0200 [-] [txdav.common.datastore.util.UpgradeDatabaseSchemaService#warn] Required schema version: 3.
    2011-10-26 09:46:14+0200 [-] [txdav.common.datastore.util.UpgradeDatabaseSchemaService#warn] Actual schema version: 3.
    2011-10-26 09:46:14+0200 [-] [txdav.common.datastore.util.UpgradeDatabaseSchemaService#warn] Schema version check complete: no upgrade needed.
    2011-10-26 09:46:14+0200 [-] [txdav.common.datastore.util.UpgradeDatabaseSchemaService#warn] Database schema check complete, launching database service.
    2011-10-26 09:46:14+0200 [-] [txdav.common.datastore.util.UpgradeToDatabaseService#warn] Beginning filesystem -> database upgrade.
    2011-10-26 09:46:14+0200 [-] Unhandled error in Deferred:
    2011-10-26 09:46:14+0200 [-] Unhandled Error
            Traceback (most recent call last):
              File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/application/service.py", line 184, in setServiceParent
                self.parent.addService(self)

    Just to let everybody know what I am trying at the moment:
    Found a thread where someone suggests to delete the postgresql-database:
    Detials in this thread https://discussions.apple.com/thread/3206720?start=0&tstart=0
    1. sudo serveradmin stop calendar addressbook
    2. copy old 10.6.8 calender data from backup ("../Library/CalendarServer/Documents/") to  /Library/Server/Calendar\ and\ Contacts/Documents/
    3. delete database: sudo dropdb -U _postgres caldav
    4. mv (if it exists)  /Library/Server/Calendar\ and\ Contacts/Documents/calendars-migrated to  /Library/Server/Calendar\ and\ Contacts/Documents/calendars-migrated-old
    5. sudo calendarserver_bootstrap_database
    6. now we start again: sudo serveradmin start calendar
    7. watch the log file - tail -f /var/log/caldavd/error.log
    And I get the same error as above but now I see a new one:
    2011-10-26 15:29:19+0200 [Uninitialized] [twistedcaldav.memcachepool.MemCacheClientFactory#error] MemCache connection failed: [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionRefusedError'>: Connection was refused by other side: 61: Connection refused.
    Every help is welcome, bye
    Christoph

  • [SOLVED} Suspend to ram does not work (with sleep, s2ram, pm-utils)

    Hi.
    I would like to ask for one thing: i can't suspend to ram or resume from suspend to ram.
    I treid to check over www in order to find some help, some solutions, and how to fix that. Unfortunately, i found these:
    https://forums.opensuse.org/showthread. … 13-2/page2
    https://bugzilla.opensuse.org/show_bug.cgi?id=913105
    https://forums.opensuse.org/showthread. … S-13-1-x64
    Bug 91921 - WD 2TB Caviar black causes hard lock on resume S2RAM
    https://bugzilla.kernel.org/show_bug.cgi?id=91921
    In fact, when i was researching of this problem i wanted to check if my graphic card and memory are failing so a did few changes (removed memory stick and so one) but in doing this i removed almost all of my hard disk drives because i didn't want to hurt them with many reboots or resets.
    What did i find? It is strange, kernel version is not important because i checked most of them.
    I removed 2x2TB Seagate F14 series along with 4x3TB WD Green. Then i checked s2ram, it went to suspend, and resumes correctly. Everything works. I put it to sleep with s2ram -f -a 1. Works
    I attached my 4x3TB WD Green drives. I put computer to sleep with s2ram...it causes hard lock, black screen, i could do only poweroff by powerbutton. s2ram -f -a 1 causes freez. Sometimes, but not constantly, s2ram -f -a 3 -p is being able to suspend...(mostly it does a freez, hard lock computer) but sometimes it is able to put it to a sleep, but resume just freezes everyting - no blinking cursor, no blinking num lock led and so on.
    I know that you would suggest me to check logs - this is the main problem. Logs for pm-suspend works when i suspend or resume without WD drives attached. When i have them connected, i'm not able to check pm-logs because computer hangs, freezes and logs are not being stored/writed to pm-suspend.log and pm-powersave.log.
    Could somebody help? Point me to a solution? I can't check logs because there are not any when freezing occurs. I checked openSuse thread and many others and for other systems there were some kernel fixex, patches.
    They wrote that WD blacks are at fault because they don't have APM. Well, in fact my WD Green have APM with very aggresive factory settings: they park heads over 8 seconds not being used. I disabled it in firmware but disabling it is not the point and not the problem. People have the same problem even with APM and parking heads on other WD drives, i found it that some have it with WD Red's drives and even with very old 320GB WD Blue series - what is more funny, i have 640GB AAKS blue from WD and with this drive i can suspend or resume - APM on this drive is also unavilable, like in Green series because i changed it with wdidle with prebootable cd. I can't  supend or resume with 3TB WD Greens.
    BTW - suspend to disk, with pm-utils and uswsusp works ok, in 100% every time. (i had to add "shutdown method = shutdown" to /etc/suspend.conf from uswsusp package).
    On Windows machine it works. Can suspend, can resume, can hibernate.
    Last edited by firekage (2015-03-07 03:27:28)

    Hm, sometimes i found myself astonished because some things just does not work at all on one machine, while the other one has no problem at all. I was trying to find why suspend to ram won't work at all...and while i was searching i found one topic that was leading to upower dbus. Similar problem with upower i found, by coincidence, on Manjaro forum.
    dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend
    this command above returns all the time:
    Error org.freedesktop.DBus.Error.UnknownMethod: Method "Suspend" with signature "" on interface "org.freedesktop.UPower" doesn't exist
    I tried this:
    sudo systemctl enable acpid.service
    sudo systemctl --system daemon-reload
    sudo systemctl restart systemd-logind
    As soon as i enabled and started acpid.service...my supend to ram, from kde, works like a charm, without graphic problem, or freezing.
    There is few question: why on my desktop suspend doesen't work out of the box, when even archwiki says it should? Why on my netbook machine (Acer AOD270) that has the same package installed it works out of the box? Why on my desktop machine acpid.service was not enabled, was not started and was not running while on the notebook it does?
    Anyway...i fixed it by a big coincidence because on Fedora forum somebody has problem with suspend to ram with nvidia GTX750 and this card was new like my card (GTX660). He posted the same problem with upower that i posted in quotes and because of this i found another thing on Manjaro forum and that was it!
    BTW - this problem, i now think, is not related to my WD drives because it works with them. I think that there was another one ugly thing that broke my suspend to ram ability - bios of my motherboard (so called uefi bios with support for old one) has no option for S1-S5 stated (like the previous motherboards had) and only have ASPM...and ASPM is in my opinion broken but i will try to veryfi it one again later.
    Last edited by firekage (2015-03-07 03:29:20)

  • Host function plus sudo command not working

    Hi,
    For normal command such as ls, it works.
    But when I run the following
    v_host := '/usr/bin/sudo -u devuser /test/app/dev/scripts/test.sh
    host(v_host);
    it does not work.
    anyone has idea ? Thanks.
    Ivan

    I imagine sudo is probably attempting to prompt for a password. I think it depends on who you are logged in as and who you are trying to log in as (and whether you have logged in recently within the last few minutes).
    The host command won't support this kind of interaction. It needs to be a command that returns its results without requiring any further prompting.
    That would be my guess.

  • Iosnoop does not work properly

    Hi,
    I'm trying to use iosnoop on my PowerMac G5 (dual 2GHz) running Mac OS X 10.5.5 and Dev Tools 3.1.
    • I *sudo -s*
    • I launch iosnoop
    • I wait, 5 or more minutes, but the only output I have is:
    *UID PID D BLOCK SIZE COMM PATHNAME*
    • I have to ctrl-c
    If I run the same commands on my MacBook Pro running Mac OS X 10.5.5 and Dev Tools 3.1, it works.
    Any idea ?

    I'm now running 10.5.8 and iosnoop does not work anymore on my PowerMac G5.
    And more important, DTrace tools are unable to work with devices.
    If I try using iopattern with -d option to monitor a particular disk, it only returns 0s:
    $ df /Volumes/pandore/
    Filesystem 1K-blocks Used Available Capacity Mounted on
    /dev/disk0s3 312440112 169621584 142818528 55% /Volumes/pandore
    # iopattern -d disk0s3
    DEVICE %RAN %SEQ COUNT MIN MAX AVG KR KW
    disk0s3 0 0 0 0 0 0 0 0
    disk0s3 0 0 0 0 0 0 0 0
    disk0s3 0 0 0 0 0 0 0 0
    iosnoop is also unable to work with devices, and it looks like dtrace is unable to read device's name:
    (from a macbook pro)
    # iosnoop -e
    DEVICE UID PID D BLOCK SIZE COMM PATHNAME
    ?? 0 13 W 213465152 4096 syslogd ??/log/system.log
    ?? 501 1993 R 19232072 8192 Safari ??/Browser.nib/keyedobjects.nib
    ?? 501 1993 R 3959280 24576 Safari ??/ToolbarItems.nib/keyedobjects.nib
    ?? 0 13 W 213465152 4096 syslogd ??/log/system.log

  • Mac, have just upgraded to Yosemite and when I shall open Photoshop (CS4), the following message appears: "The licensing of the product does not work" Fault 6 How should I proceed? Have the program installed on only one computer.

    Mac, have just upgraded to Yosemite and when I shall open Photoshop (CS4), the following message appears:
    "The licensing of the product does not work"
    Fault 6
    How should I proceed?
    Have the program installed on only one computer.

    Download the Adobe Licensing Repair Tool.
    Run the License Service Update.
    Mac OS X 10.7 and above:
    a. Double-click the LicenseRecovery111.dmg   It will extract the folder. Open the folder.
    b. Double-click your Hard Drive.
    c. Double-click Applications.
    d. Double-click Utilities.
    e. Double-click Terminal.
    f. Type sudo python
    Note: There is a space following “python”. Do not press Return.
    g. Drag LicenseRecover.py from the LicenseRecovery111 folder onto the Terminal Window and press Return.
    It should look like this:
    h. Enter your administrator user name and password when prompted and click OK.
    (Note: the cursor will not move and you will not see stars or dots, just enter your password anyway.
    i. Let the script run, it will tell you when it is finished. Quit terminal and restart Photoshop
    Gene

  • After upgrading my Macbook to Yosemite, the volume icon at the top right is greyed out and sound does not work.

    After upgrading my Macbook to Yosemite, the volume icon at the top right is greyed out and sound does not work.

    Interesting bug. I'm cautiously optimistic this will get rid of the weekly annoyance. The difference is that I bought my laptop back in Feb 2015, so it came with Yosemite. I think the issue may have appeared soon after an OS update not long after I got the thing, though. I was using a sudo command in the Terminal, but that is obviously not a fix.
    I wonder if there is a broken .plist file that may be fixed ...?

  • HT5559 Java web start does not work

    I have followed the instructions in this article, including the last step about web start, but it still does not work, neither applets or web start. When I try to launch a JWS application by double clicking it I get the dreaded warning dialog:
    To open this Web Start application, you need to download the Java Runtime Environment.
    Click “More Info…” to visit the website for the Java Runtime Environment.
    I do have a JRE installed, 1.6, since I for compatibility reasons can't upgrade.
    Trying to launch a web start application from the commandline looks like this:
    $ javaws /tmp/airview.jnlp
    Java Web Start splash screen process exiting ...
    Can not find message file: No such file or directory
    Regular Java-programs work fine.
    $ java -version
    java version "1.6.0_37"
    Java(TM) SE Runtime Environment (build 1.6.0_37-b06-434-11M3909)
    Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01-434, mixed mode)

    Read this thread https://discussions.apple.com/thread/4789691?tstart=0
    This fixed the issue for me:
    sudo /usr/libexec/PlistBuddy -c "Delete :JavaWebComponentVersionMinimum" /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/XProtect.meta. plist
    In the comments to the linked article someone suggests to comment out the node in stead of deleting it. Probably safer (it's explained further down how to do that). Anyway I already spent to much time on this nonsense, deleted it and it worked, so I'm happy.

  • DHCP with redundant Gateway does not work

    I am having trouble connecting to my office network using Wifi.
    I have done some investigation and found the problem which is...
    When DHCP server serves the request and replies with multiple/redundant gateways, the device does take the IP and communicates within the local network but ignores the gateway and is not able to connect the outside network.
    When I requested my Systems Administrator and he added specific setting for my device's MAC address and sent only one gateway in DHCP reply, device starts to connect outside.
    Our office has other debian based and CentOS based systems running including Ubuntu workstations but none of them is having problem with multiple/redundant gateways but only N900 is having this problem. It means that the problem is not inherited from Linux or Debian but the bug is related to Maemo itself.
    I have tried to tell add some technical details and do not expect answers like to check firewall and so. This is a genuine problem and is not intermittent. We have experienced it using MS DHCP server under windows 2003 and win 2k as well.
    End users: Please try to duplicate the problem before suggesting a work around or anything
    Developers/Admins/Officials:  I hope you acknowledge the problem soon.

    Yes it is uncommon configuration in house holds but in offices or places that have access to more than one Internet connection the configuration will be common. Houses normally have one small router with one internet connection. However in many offices the router is attached to multiple connections and manages fault-tolerance. Having said all that, regardless of how often it is used, when used it wont work and it is a bug.
    In DHCP protocol "003 Router" is defined as a list of IPs not a single IP and if DHCP protocol is properly supported this should have work. What I mean is that this problem is related to DHCP implementation. Following is the output of route command...
    ACTUAL OUTCOME:
    ===============
    / $ sudo /sbin/route
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    192.168.2.15    *               255.255.255.0   U     0      0        0 wlan0
    / $
    EXPECTED OUTCOME:
    =================
    / $ sudo /sbin/route
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    192.168.2.15    *               255.255.255.0   U     0      0        0 wlan0
    default         192.168.2.1     0.0.0.0         UG    0      0        0 wlan0
    default         192.168.2.2     0.0.0.0         UG    10     0        0 wlan0
    / $
    I already posted the big on Bugzilla
    https://bugs.maemo.org/show_bug.cgi?id=9662
    Well I posted this here as well so if someone else also faces the same problem (not sure if there will be one) but they should at-least know the problem instead of thinking that why the hell my internet does not work in office when there is no firewall blocking it.. :-)
    I do hope to get it viewed by a "sympathetic developer" :-)
    I currently am not into develop/modify scripts but if this is not fixed by others then I believe I don't have a choice.
    For now as I mentioned I did a work around by adding an IP reservation in my DHCP server which allows me to fix it to one Gateway for this MAC address only. But if I did not have admin access over my DHCP server, I was in trouble then and maybe would not be able to event troubleshoot and identify the problem.

  • Repair disk permissions does not work

    Repair disk permissions does not work. Disk Uitliy fines many incorrect permissions (ACL found, but not expected) and says that it would repair it. However, when checked again, it finds the same permission errors.
    I have tried Disk Utility as well as the command line "sudo diskutil repairPermissions /" (which probably does exactly the same as Disk Utility).
    Any hints?
    C.

    Are you trying to Repair Permissions because you have file access problems in the System files, or just because you think you need to do it?
    If the former, please explain what you are seeing. If the latter, stop wasting your time.
    The things it doesn't repair are not repaired because there is nothing broken. The orginal Receipts files have the old settings, and subsequent updates have changed the permissions on those things to what they should be, now. It will report the differences it finds every time you run Repair Permissions because they will always be different and they should be the way they are.

  • Der2pem does not work

    I followed the manual instructions and ran the setWLSEnv.sh from the /server/bin directory to make sure weblogic.jar is in the path. Now when I run der2pem as suggested in the bea weblogic manual der2pem does not work.
    [182] % sudo java utils.der2pem
    Exception in thread "main" java.lang.NoClassDefFoundError: utils/der2pem
    [183] %
    Did anyone else faced the same problem?
    Thanks

    Forget the environment script and specify the classpath when you execute
    java. The path is not important, only the classpath.
    java -cp ${WL_HOME}/server/lib/weblogic.jar utils.der2pem ...
    Grant
    I followed the manual instructions and ran the setWLSEnv.sh from the
    /server/bin directory to make sure weblogic.jar is in the path. Now
    when I run der2pem as suggested in the bea weblogic manual der2pem
    does not work.
    [182] % sudo java utils.der2pem
    Exception in thread "main" java.lang.NoClassDefFoundError:
    utils/der2pem
    [183] %
    Did anyone else faced the same problem?
    Thanks

Maybe you are looking for

  • Calendar List different than Day or Month

    I have an IPhone 4 with IOS 5.1.1. Recently when I go to my Calendar the appointments shown in the List view are one day behind the appointments shown on the Day or Month view (i.e. 2:00 pm appointment shown correctly in Day and Month for Monday show

  • Keychain keeps asking for password

    A few days ago I had a keychain failure and since then Mail and the system periodically ask me to enter the keychain password. I'd like to stop this behavior and let all installed apps use keychain while I'm logged in. Where do I find the setting?

  • Calendar time frame

    The default calendar in my BlackBerry 8330 Curve starts the day at 09:00 (9:00am) and ends at 17:00 (5:00pm). However, my average day starts way earlier than nine, and ends way after five. Is there a way to change the clock limits on the calendar? Fo

  • Any reason to use "Manually manage music" over creating an iPhone playlist?

    My new iPhone is my first iPod that's not big enough to hold all 319 of my albums. In fact, the limited capacity is the only reason it took me so long to buy one -- it's always seemed that the whole point of having an iPod is the ability to take it a

  • How to Transfer photos from phone to desktop for free

    What is the best way for free, to transfer pics off my phone to a file in my computer?  I have the phone plugged into the computer now.  Thanks