[SOLVED] Don't have permission to turn off bluetooth, even with sudo!

I never use bluetooth on my laptop, but every time I boot arch the radio and light are both on. I tried unloading the bluetooth module, using bluez and other tools to shut off bluetooth, etc., but that radio just stays on. After searching the web for a while, I finally found the solution: cut off power to the device. I can do that with this command:
echo "0" > /sys/devices/platform/sony-laptop/bluetoothpower
And turn it back on by changing "0" to "255". The only problem is, I can't run this as a normal user, and I can't even run it with sudo! Here is the output:
$ echo "0" > /sys/devices/platform/sony-laptop/bluetoothpower
zsh: permission denied: /sys/devices/platform/sony-laptop/bluetoothpower
$ sudo echo "0" > /sys/devices/platform/sony-laptop/bluetoothpower
zsh: permission denied: /sys/devices/platform/sony-laptop/bluetoothpower
(I'm using zsh but this also happens with bash)
However, I can su to root and run this command successfully
$ su
Password:
# echo "0" > /sys/devices/platform/sony-laptop/bluetoothpower
And off goes the light. I would like to somehow turn off bluetooth at boot, but I don't know how to have Arch run a command as the root user at boot after loading the modules (to ensure the bluetooth radio is not started up again). It seems that bluetoothpower is created at each boot, because I tried changing the permissions to read & write for all, then adding the command to my .xinitrc. This worked, but only during that session. After rebooting I had the same problem.
Help?
Last edited by Allamgir (2009-07-29 13:44:40)

Yes! Yet again the wiki has saved me! I followed this part: http://wiki.archlinux.org/index.php/Pm- … _own_hooks
I just set it to turn off bluetooth upon resume, and it works! yay!
Thanks everyone!

Similar Messages

  • How do I view pc files migrated to iMac? The folders tell me I don't have permission to open them.

    I used the Migration Assistant tool to copy files from my WindowsXP pc to my new iMac.   This took about 3 hours to complete.
    I finally was able to locate the folders on the iMac, but they all have a red minus sign in the bottom right corner, and when I try to open them, I get a message saying I don't have permission to open the files - even though they are my own files.  Any ideas on how to access my migrated files on my Lion iMac?

    Select a folder, CMD+I, unlock the lock, and change the permissions. Assuming that you're a switcher from the PC world,  see these:
    Switching from Windows to Mac OS X,
    Basic Tutorials on using a Mac,
    Mac 101: Mac Essentials,
    Mac OS X keyboard shortcuts,
    Anatomy of a Mac,
    MacTips,
    Switching to Mac Superguide, and
    Switching to the Mac: The Missing Manual,
    Snow Leopard Edition.&
    Additionally, *Texas Mac Man* recommends:
    Quick Assist,
    Welcome to the Switch To A Mac Guides,
    Take Control E-books, and
    A guide for switching to a Mac.

  • Trying to resize jpeg in Preview but says I don't have permission...

    I have always resized images in Preview but this time around I keep getting an error message (screen shot attached) that I don't have permission to make any changes even after checking/changing when I right-click>Get info... I clicked on the little padlock on the corner, i changed the settings for (me) and everyone to Read & Write (screen shot at bottom of post), i deleted/copied the images again and again, renamed it, tried to Save-As, and it still doesnt work.. It's driving me crazy... Any body else having this problem?
    (btw, i couldn't even resize the screenshot so that it would fit within the required dimensions, gave me the same error msg)...

    I don't have this problem (yet) but when I save a "New from Clipboard" image the resize tool is dimmed.  When I close the image and re-open it I can resize it - my fingers a wearing out closing and re-opening files all day......
    Sorry not to be of help but I must say I liked the old Preview....

  • HT5503 I accidentally forgot my passcode and tried 6 attempts but all failed.I don't have iTunes.I turned power off.Now it is not responding.Any suggestions?

    I accidentally forgot my passcode and tried 6 attempts but all failed.I don't have iTunes.I turned power off.Now it is not responding.Any suggestions?

    Without iTunes on a computer there is nothing that you can do. If you are locked out because you forgot the passcode your only solution is to restore the iPad using iTunes on a computer.
    I don't know exactly want you mean by it is not responding - does that mean that it will not power up again?

  • External Hard Drive "You don't have permission" intermittent issue

    Hi -
    We have three iMacs that are networked using Airport Extreme.  Computer 'A' has an external USB hard drive plugged in to it.  I have "file sharing" turned on, and using "get info", I have shared the external hard drive with Computer 'B' and Computer 'C'.  Most of the time, opening or saving files to the shared hard drive works without any problems, but occasionally (perhaps twice a day) any of the three computers will display an error message that says "You don't have permission" to save, or open or do anything with a file.  It can happen on any of the three computers at any time with any file.
    In the "Sharing and Permissions" portion of a "get info" window for the shared hard drive, it correctly says "dougshaffer (Me)" and "everyone" have "Read & Write" privileges.  To fix the problem, I have to unlock the drive, click the gear wheel and choose 'Apple to enclosed items...".  This solves the problem temporarily but it will certainly happen again later. 
    Also, every time I have to go through this process, I have to re-check the "Ignore ownership on this volume" check box.  It will not stay checked even with the lock ON.
    I have searched for this issue but can't seem to find a solution.  FYI, this has happened with two different hard drives.
    Any suggestions?
    Thanks -
    Doug

    I see that a few people have viewed this question, but there are no responses yet. 
    Any thoughts, anyone?
    THANKS!

  • My Final Cut Projects folder were missing some files, I went to my time machine backup to restore and it said I don't have permission to access the time machine folder "Final Cut Projects". Why?

    My Final Cut Projects folder were missing some files, I went to my time machine backup to restore and it said I don't have permission to access the time machine folder "Final Cut Projects". Why?

    Yes, I've done all "the ususal suspects.." repaired permissions, zapped pram, "reintroduced Time Machine to the backup drive by turning it off and on... etc

  • Installed Parental Controls on MBP 10.7.5. Now it's unusable (exc admin's acct).  Constant message pops up- "You don't have permission to use (whatev) app." U can click: ok, always allow, allow once, but no matter what, message continues and u can't work

    Hi,
    I installed Parental Controls on our MacBookPro 10.7.5. Now it's unusable (except for my  admin's acct). Constant messages keep popping up that say  "You don't have permission to use (whatever) application." You have the option to  click: ok, always allow, or allow once, but no matter what you select, the messages keep popping up and prevent you from working.  I have searched these forums, and all I have found is that you are supposed to uninstall the application (Spotify, dashboard, etc). Deinstalling every app is not a solution.
    If the parental controls just don't work - and frankly I'm tired of wasting all this time trying to fix the bugs - can someone recommend a program that will restrict certain user accounts to any websites I haven't specified?
    Thanks for any help or advice.

    Thanks Bob for that very fast reply!
    But neither "Modifying hal configuration" nor "Using the Desktop Environment settings" (xfce) worked. So I tried the "I don't want this crap, how do I turn it off?" solution and well it works
    Maybe I turn it back on in a month or so.. but for now i'm fine with no hot plugging but a working keyboard...
    Thanks and Bye!
    smax
    Last edited by smaxer (2008-12-09 17:42:43)

  • I don't have permission to open my own folders

    My hard drive failed and I just got it replaced. Now I can't open my Desktop, Documents, Libraries, Movies and Pictures folders because I "don't have permission to see [their] contents". After using Migration Assistant to pull in my backed-up data I was asked to change my user name and I suspect this is at the root of the problem.

    I did a permission repair booted from the Snow Leopard disk and that appears to have solved the problem – for which many thanks, Barney. However almost half of the items in my Dock have now been replaced by question marks and two have different icons which, upon clicking, become renamed as unknown files (for instance my iChat icon has turned into a Tiff document item. Holding the cursor over it displayed "iChat" but after clicking it linked to a .tif file which lies within Applications > iChat.app > Contents > Resources. With one exception, the remaining apps in the Dock are those which came with the OS. Presumably the answer is to copy the missing apps from Time Machine but how exactly do I go about that?

  • Issue Migrating iTunes Library to NAS - ... you don't have permission...

    I have set up a Buffalo Linkstation Duo Nas with 2TB of usable space (4TB Raid 1) on my home network and it seems to be working fine.
    I created a Share folder for Video (which I don't use with iTunes) and another for iTunes Media.
    The 600GB of Video that I had on my Mac Pro transferred over just fine, but I am having trouble migrating my iTunes Media over.
    According to some posts I've read, the best way to do so is to point iTunes to the new disk in Preferences, then and then do a:
    File>Library>Organize Library>tick Consolidate Files>OK
    This was going smoothly until about a half hour (5GB) into the transfer (of ~200GB) and I got an error dialog that says:
    "Copying files failed, because you don't have permission to change your iTunes Media Folder or a folder within it."
    (the comma is iTunes' typo, not mine)
    It doesn't say whether the issue is with the new iTunes Media Folder or the original one.
    After using Get Info to check the permissions on the iTunes Media Folder and all the folders immediately inside of it, they all seemed to be read/writable by me.
    I ran a Permissions Repair on my main HD with the original iTunes library, but that didn't help.
    I can manually copy files to the NAS drive and the shared folder to which I'm attempting place the new iTunes Media Library. So I don't think it is an issue with the NAS.
    ... and yes, I've tried switching everything off and on.
    Would anyone like to take a guess as to what the issue with the permission would be?
    -or-
    Can I just manually copy everything over to the NAS and then redirect iTunes to the new folder?
    Judging by what did transfer over to the NAS, iTunes seems to be reorganizing a few of the folders and things so it would be nice to let iTunes do the migrating... but... whatever works is fine.

    Solved independently.
    I had some videos that were not being managed by iTunes on an external drive which had screwy permissions.... so it wasn't the iTunes Media Folder that was the permission issue, but the oddball folder on a faulty drive.
    I removed the offending videos from iTunes and tried again. The entire library consolidated nicely onto the NAS drive (took 18 hrs. though)
    Now I just need to figure out the best way to share that library with all the computers on the network. From what I've been reading, it is not as simple as just pointing all the Macs' iTunes to the iTunes Folder on the NAS drive - There are artwork issues and problems with using the same Library simultaneously between Macs.
    .... But that's for another discussion.

  • You don't have permission to save in this location win 7

    Hi am only the user of my laptop and am the admin and when am try to save any file in Local C or on Pen drive I get this message  " You
    don't have permission to save in this location.  Contact the administrator to obtain permission.  Would you like to save in the ...... " kindly can any body help me ....

    I did it already , I want to copy same file to this path C:\Program Files\Java\jdk1.7.0_09\bin even when I want to copy it to the pen drive it's not working . It's given me same message  " You
    don't have permission to save in this location.  Contact the administrator to obtain permission.  Would you like to save in the ...... " 
    Under Windows 7 you cannot save files to system folders such as C:\Program Files. One way to get around the restriction is to temporarily turn off UAC. Click Start, then Help, then look for help on UAC.

  • Time Machine:...you don't have permission to access

    Hello People (it's been a while)
    I'm having trouble restoring files from Time Machine to my desktop. Specifically, i accidentally deleted an imovie project i was working on and turned to Time Machine to get it back. Unfortunately when i click restore i get the message "the operation can't be completed because you don't have permission to access..."
    It's a head scratcher, as i've found from hunting around google and these forums. Has anyone come up with a solution?
    I've tried repairing permissions and had a look in the get info box on my external (TM) hard-drive. Nothing appears to be amiss.

    Read the following:
    What to do if Time Machine reports you don't have permission
    This was posted in the Apple Discussions by V.K. I have only modified it slightly to be more generic.
    The problem seems to be that 10.5.6 changes permissions on a file so that even the root user doesn't have write peivileges. I have no idea why they did this. The workaround suggested in [an]other post will probably work, too, but i did something less drastic. Instead of deleting the file I changed permissions on it, and it worked just fine. An added benefit is that the permission change seems to stick, so you don't have to delete the file every time you change a drive.
    [Open the Terminal application in your Utilities folder. At the prompt [enter] the following command:
    sudo chmod 644 /volumes/"TM drive name"/.xxxxxxxxxxxx
    The name of the file .xxxxxxxxxxxx is based on the MAC address of your computer and will be different for every computer. Put the name of the TM drive in the above and keep the quotes.
    You'll have to enter your admin password (which you won't see) which is normal.
    This was edited by Kappy just for cleanup.
    Enable Finder to Show Invisible Files and Folders
    Open the Terminal application in your Utilities folder. At the prompt enter or paste the following command line then press RETURN.
    defaults write com.apple.finder AppleShowAllFiles TRUE
    To turn off the display of invisible files and folders enter or paste the following command line and press RETURN.
    defaults write com.apple.finder AppleShowAllFiles FALSE
    Alternatively you can use one of the numerous third-party utilities such as TinkerTool or ShowHideInvisibleFiles - VersionTracker or MacUpdate.
    Also, see User Tips for Time Machine for help with TM problems. Also you can select Mac Help from the Finder's Help menu and search for "time machine" to locate articles on how to use TM. See also Mac 101- Time Machine.

  • Can't move any files... "The operation can't be completed because you don't have permission to access some of the items."

    This is a strange one... I just recently did a complete format/reinstall of Lion because of very poor performance after upgrading.
    So I'm on a totally fresh system, no TimeMachine restore or anything. I've installed all my apps from scratch - no prefrence file backups or anything. Everything is fresh.
    Yesterday I tried to copy a file from one folder to another and I got the error "The operation can’t be completed because you don’t have permission to access some of the items". Checked file permissions... repaired disk permissions... made sure I was logged in as admin (I only have one account)... everything looks good.
    This is now happening when trying to copy any files anywhere on my machine... Very frustrating.
    There's a couple strange side-effects I've noticed:
    - I can move & copy files just fine in terminal... without sudo...
    - The little lock icon in the bottom right of the Get Info window doesn't do anything - I can't unlock it. I can still edit the permissions for the file/folder but I can't select the "apply to enclosed items..." option.
    Does anybody know what the heck is going on?

    jsd2 wrote:
    Try creating a new admin user account, logging into it, and then creating some new items on the Desktop and elsewhere. Does the same thing happen there?
    Ok the strangeness continues!
    I created a new "TestAdmin" account, but it doesn't show up in the Users & Groups prefrences sidebar... The /Users/testadmin folder was created, but the account doesn't show up in the prefrences or login window...
    I tried a reboot to see if the account would show up and it still doesnt.... However after the reboot I am now able to copy files again!
    I'm paranoid that the problem will show up again since I have no idea what fixed it. I tried rebooting previously after repairing permissions which didn't solve the issue so it's not like I haven't rebooted since it started.
    And now I have the issue of not being able to create user accounts.
    A little dissapointed with Lion to be honest... the new features are cool but there are so many little bugs it really feels half-baked.

  • Why am I being told that a JPEG file that I made changes to in Photoshop 6 (CS6) can't be saved?  The message I get says that either the file is locked and I don't have permission to execute this or another program is using this file.

    i recently purchased a 21.5 iMac with Yosemite (10.10.1) and was disappointed to discover that my CS6 programs are not functioning correctly.  I am unable to use the "Save As" command  when making changes to a JPEG file in Photoshop.  The message I get says that either another program is using the file or it is locked and I don't have permission to execute that command.  I'm experiencing a similar problem in Bridge when trying to move an unwanted file to the Trash.  Again, I get a message telling me that i don't have permission to do this.  Lastly, I'm unable to open any Camera Raw files.  Any suggestions?  I had no problems with the Mavericks OS on my old iMac and although it's much slower, I'm tempted to go back to using my old iMac.  At this point, I feel as if I've just wasted $2300+ (tax included). 

    Back up all data before proceeding.
    This procedure will unlock all your user files (not system files) and reset their ownership, permissions, and access controls to the default. If you've intentionally 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. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it, but you do need to follow the instructions below.
    Step 1
    If you have more than one user, and the one in question is not an administrator, then go to Step 2.
    Triple-click anywhere in the following line on this page to select it:
    sudo find ~ $TMPDIR.. -exec chflags -h nouchg,nouappnd,noschg,nosappnd {} + -exec chown -h $UID {} + -exec chmod +rw {} + -exec chmod -h -N {} + -type d -exec chmod -h +x {} + 2>&-
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the built-in 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 and start typing the name.
    Paste into the Terminal window by pressing command-V. I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
    You'll be prompted for your login password, which won't be displayed when you type it. Type carefully and then press return. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command may take several minutes to run, depending on how many files you have. Wait for a new line ending in a dollar sign ($) to appear, then quit Terminal.
    Step 2 (optional)
    Take this step only if you have trouble with Step 1, if you prefer not to take it, or if it doesn't solve the problem.
    Start up in Recovery mode. When the OS X Utilities screen appears, select
              Utilities ▹ Terminal
    from the menu bar. A Terminal window will open. In that window, type this:
    resetp
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window will open. You’re not going to reset a password.
    Select your startup 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.

  • TextEdit Save Error Message "you don't have permission..."

    TextEdit, in both Mountain Lion and now Mavericks,displays what appears to be a fake "Save "error:
    "You don’t have permission to write to the folder that the file “XXXXX.txt” is in.
    Your changes will not be saved until the problem is resolved."
    I have repaired permissions several times with no result. The permissions are clean, not requiring fixing.  I am Admin.  I should be able to save anywhere, altho I have tried saving in many different places just to test.
    It does not ask for the Admin password.
    Here's when it happens:
    1) Open a document. either new or existing.
    2) Type some text in it.
    3) Save -- choose destination if new and it seems to work.
    4) Start typing in the document
    5) After a few seconds I get the above error message that drops down from the title bar at the top of the document.
    6) I have to click the OK button and I can go on typing.
    Repeat
    Save document, type a few characters, get error message, click OK.
    Repeat all day long.
    Yet it seems that my changes have been saved.
    Most annoying.

    Wow.  Why bother reading the forum if you are convinced the solution isn't going to work before even trying it?
    Another viewer besides myself commented above that they repeated the process and it worked for them, so it's not exclusive to my setup.
    A search for textedit revealed 97 files.  The search took 12 seconds on my eight core Mac Pro.
    I quit EasyFind, opened TextEdit and made a simple change in the preferences, saved and then quit TextEdit.
    I searched again with EasyFind, sorted by Modified and found eight files had been changed at the exact time I quit TextEdit.  One of those is the culprit.  I deleted them all.
    No, I don't work for EasyFind, nor do I know the people, nor do I receive compensation of any type from them.  I like it and recommend it because it just plain works and I like to share good info like that with the Mac community,  (BTW, it's free)
    Good luck with solving it on your end.  If you find a more scientific solution please share it so we can see how it should be done by a real tech support guy instead of an amateur like me.  (I was an Apple Var at one time, now I do some support for my friends.  I'm on about my tenth Mac, the first being a Fat Mac, and have two Macs and an iPhone at this time.  No doubt I have no idea what I'm doing)
    You really are funny!  You must be a, oh never mind, I was going to name a political party.

  • Leopard.  Did a full restore from Time Machine.  Now I can't access my other internal and external drives.  I get the following error: The folder "Capture Video" can't be opened because you don't have permission to see its contents.

    Leopard.  Did a full restore from Time Machine.  Now I can't access my other internal and external drives.  I get the following error: The folder “Capture Video” can’t be opened because you don’t have permission to see its contents.  I have repaired permissions pn the main harddrive.  When I try too click on a disk I get the previously stated error.  I can't even open up information to see what permission/access there is.  It simply will not let me see the content.  It shows the content of my main hard drive when I have clicked the other harddrive's name.

    Solved:
    sudo chflags 0 /Volumes/"FCP Time Machine BU"
    sudo chown 0:80 /Volumes/"FCP Time Machine BU"
    sudo chmod 775 /Volumes/"FCP Time Machine BU"
    sudo chmod -N /Volumes/"FCP Time Machine BU"

Maybe you are looking for

  • How to create multi volume partition

    Hi I'm trying to figure out how I can create one single partition accross multiple disks so that I basically can extend the partition at the moment I'm running out of diskspace.  The disks that I use are western digital mybook daisychained via firewi

  • Received new email and cant delete it or send new ones at all now

    Hi, I have tried about a dozen times to delete junk mail from inbox. Usually they go into the mail trash bin, but not now. I tried dragging them to the desktop waste bin and again no joy. I went into mail preferences and . In Mail, open Preferences f

  • No curser in find window (command f)

    Hi, When I use command f, the pop up window has no cursor or blinking type position marker. I can type in a search term but cannot edit or highlight the term I type in the window except with delete key. Ideas?

  • ImageIO - javax.imageio.IIOException: Can't get input stream from URL

    Hi, I'm developing a program which accesses a given URL of an image and saves it to a file. However when I try this I get the following error: javax.imageio.IIOException: Can't get input stream from URL!      at javax.imageio.ImageIO.read(Unknown Sou

  • L_TO_DELETE_ITEM_INT,error message

    Hi, I am trying to delete a item from a delivery when is 0, so after using L_TO_CREATE_DN I check if the delivery picked is 0, if it is like this I use the FM L_TO_DELETE_ITEM_INT to delete the item, the problem is that I can't delete it and I have t