+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 19
Mac Thread, Unable to empty trash - permissions problem in Technical; I cannot delete a folder from my trash as I do not have the correct permissions to do so. I ...
  1. #1
    theeldergeek
    Guest

    Unable to empty trash - permissions problem

    I cannot delete a folder from my trash as I do not have the correct permissions to do so.

    I have tried the "getinfo" and change permissions from there, but I can only set myself to "read only".

    I am an admin on the local machine (although the 'trash' folder resides in my network home)

    I realise I am going to need to go down to terminal level, but I am unsure how to proceed. My guess is "sudo chown" ...

    I have tried sudo chown <name> <path & folder (network)> and I get a password prompt, which I input, but the procedure fails with "Operation not permitted"

    Assistance required!

  2. #2
    Marci's Avatar
    Join Date
    Jun 2008
    Location
    Wakefield, West Yorkshire
    Posts
    896
    Thank Post
    84
    Thanked 235 Times in 194 Posts
    Rep Power
    82
    sudo chmod -R 777 <trash folder> (should then prompt for you to re-enter your local admin account password)
    sudo chown -R user:group <trash folder>

    Is your network home on a Mac Server, or a Windows Server?

  3. Thanks to Marci from:


  4. #3

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,937
    Thank Post
    3,468
    Thanked 1,091 Times in 1,006 Posts
    Rep Power
    371
    If you move the folder back to its original location and use batchmod

    Home of BatChmod

    Download and install the above util and you should be able to drag and drop the problematic folder onto the util and set perms etc as relevant and apply that

    Also check to see if there is anything inside of the folder that is having the issues ie permissions or locked files etc

  5. Thanks to mac_shinobi from:


  6. #4
    theeldergeek
    Guest
    Quote Originally Posted by Marci View Post
    sudo chmod -R 777 <trash folder> (should then prompt for you to re-enter your local admin account password)
    sudo chown -R user:group <trash folder>

    Is your network home on a Mac Server, or a Windows Server?
    Network home is on an xserve

  7. #5
    theeldergeek
    Guest
    Quote Originally Posted by Marci View Post
    sudo chmod -R 777 <trash folder> (should then prompt for you to re-enter your local admin account password)
    sudo chown -R user:group <trash folder>
    Grrrrrr!!

    I still can't get it to work.

    I am putting this into terminal :

    sudo chmod -R 777 tim /Network/Servers/<server name>.<domain>/Volumes/Data/Machomes/tim/.Trash

    (I am getting the path by dragging the offending file into terminal and then deleting text back to '.Trash')

    It returns me to the prompt.

    Then I put :

    sudo chown -R user <trash folder path>

    Initially, I had to put a password in. I put my password is as I am an admin on the machine. Now, when I subsequently input the commands, I'm not getting prompted for a password.

  8. #6

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,937
    Thank Post
    3,468
    Thanked 1,091 Times in 1,006 Posts
    Rep Power
    371
    Quote Originally Posted by Tx2online View Post
    Grrrrrr!!

    I still can't get it to work.

    I am putting this into terminal :

    sudo chmod -R 777 tim /Network/Servers/<server name>.<domain>/Volumes/Data/Machomes/tim/.Trash

    (I am getting the path by dragging the offending file into terminal and then deleting text back to '.Trash')

    It returns me to the prompt.

    Then I put :

    sudo chown -R user <trash folder path>

    Initially, I had to put a password in. I put my password is as I am an admin on the machine. Now, when I subsequently input the commands, I'm not getting prompted for a password.
    you doing this from the xserve itself either remoted into the xserve or on the xserve itself or you doing this from a client apple mac ?

    Also what type of account are you logged in as on the xserve, an AD domain account, local admin account on the xserve or what exactly ?
    Last edited by mac_shinobi; 16th November 2009 at 03:44 PM.

  9. #7
    theeldergeek
    Guest
    Quote Originally Posted by mac_shinobi View Post
    you doing this from the xserve itself either remoted into the xserve or on the xserve itself or you doing this from a client apple mac ?

    Also what type of account are you logged in as on the xserve, an AD domain account, local admin account on the xserve or what exactly ?
    I'm doing it from my own client machine, which I think is probably wrong, otherwise you'd not be asking me

    We don't have our Mac network bound to AD; I can log into the xserve using Remote Desktop as a local admin if need be.

  10. #8

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,937
    Thank Post
    3,468
    Thanked 1,091 Times in 1,006 Posts
    Rep Power
    371
    Quote Originally Posted by Tx2online View Post
    I'm doing it from my own client machine, which I think is probably wrong, otherwise you'd not be asking me

    We don't have our Mac network bound to AD; I can log into the xserve using Remote Desktop as a local admin if need be.
    I would try that and try above advise again

  11. #9
    theeldergeek
    Guest
    Quote Originally Posted by mac_shinobi View Post
    If you move the folder back to its original location and use batchmod

    Home of BatChmod

    Download and install the above util and you should be able to drag and drop the problematic folder onto the util and set perms etc as relevant and apply that

    Also check to see if there is anything inside of the folder that is having the issues ie permissions or locked files etc
    I'm afraid BatChmod didn't do the trick, however, I can't move the folder out of Trash, it just copies it.

  12. #10
    soveryapt's Avatar
    Join Date
    Jan 2009
    Location
    Lancashire
    Posts
    2,423
    Thank Post
    656
    Thanked 278 Times in 245 Posts
    Rep Power
    78

  13. #11
    theeldergeek
    Guest
    Quote Originally Posted by mac_shinobi View Post
    I would try that and try above advise again
    I did just that, with no obvious success.

    However, whilst on the server (remotely) i then went to Finder > go folder > path to .trash

    I saw the files that were in my trash there, so dragged them to the trash on the xserve. I was then able to empty the remaining problem free files from the trash on my client machine.

    I haven't tried emptying trash on the xserve, but that can wait!

  14. #12
    Marci's Avatar
    Join Date
    Jun 2008
    Location
    Wakefield, West Yorkshire
    Posts
    896
    Thank Post
    84
    Thanked 235 Times in 194 Posts
    Rep Power
    82
    sudo chmod -R 777 tim /Network/Servers/<server name>.<domain>/Volumes/Data/Machomes/tim/.Trash
    First problem... no username for chmod. The above command should NOT have "tim" after the 777... Only chown requires username, but then it requires username and group name... so for us (where ours are Windows Network accounts) to chown a file for myself it'd be:

    sudo chmod -R 777 <path to whatever> [this makes the folder read/write/execute allowed for everone, and the -R makes it recursive, so anything inside that folder also ends up the same]
    sudo chown -R mcoyles:"HORBURY\Domain Admins" <path to whatever> [this sets myself as the owner of the folder, with -R as above]

    It'll only prompt you for password the first time you sudo a command in a terminal session. You're then authenticated as able to sudo for the remainder of the session, so it won't prompt you for it again unless you quit terminal and reopen.

    So... time to get all logical.

    Open a terminal...

    Code:
    ls -l /Network/Servers/<server name>.<domain>/Volumes/Data/Machomes/tim/
    Copy and paste the output of ls -l to the thread so we can see the current permissions and ownership on the file.

  15. Thanks to Marci from:


  16. #13
    theeldergeek
    Guest
    Quote Originally Posted by Marci View Post
    Copy and paste the output of ls -l to the thread so we can see the current permissions and ownership on the file.
    ls -l /Network/Servers/server.domain/Volumes/Data/MacHomes/tim

    drwxr-x---+ 10 tim staff 296 Nov 16 15:38 Desktop
    drwxr-x---+ 11 tim staff 330 Nov 3 16:03 Documents
    drwxr-x---+ 7 tim staff 264 Oct 16 15:18 Downloads
    drwxr-x---+ 49 tim staff 1622 Sep 16 12:14 Library
    drwxr-x---+ 7 tim staff 264 Jun 30 14:42 Movies
    drwxr-x---+ 5 tim staff 264 Oct 29 15:05 Music
    drwxr-x---+ 5 tim staff 264 Mar 20 2009 Pictures
    drwxr-x---+ 4 tim staff 264 Mar 13 2008 Public
    drwxr-x---+ 6 tim staff 264 Mar 13 2008 Sites

    Is that what you require?

    The offending file that wouldn't delete, has gone now (via an alternative method) but I am extremely grateful for your explanation, particularly as I had entered 'tim' where I shouldn't!

  17. #14

    Join Date
    May 2006
    Location
    West Bromwich
    Posts
    2,192
    Thank Post
    300
    Thanked 215 Times in 185 Posts
    Rep Power
    57
    You can also chown just the user or group name. Chown -R username /folder to own. For groups, slightly different chown -R :group name /folder for group to chown.

  18. #15
    Marci's Avatar
    Join Date
    Jun 2008
    Location
    Wakefield, West Yorkshire
    Posts
    896
    Thank Post
    84
    Thanked 235 Times in 194 Posts
    Rep Power
    82
    The offending file that wouldn't delete, has gone now (via an alternative method) but I am extremely grateful for your explanation, particularly as I had entered 'tim' where I shouldn't!
    Ah... can't show you then.... n/mind!! But... have a read of Mac Dev Center: File System Overview: BSD Permissions and Ownership



SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 10
    Last Post: 12th November 2009, 02:37 PM
  2. 2K3 Member Server Permissions Problem
    By SYSMAN_MK in forum Windows Server 2000/2003
    Replies: 10
    Last Post: 3rd September 2009, 05:42 PM
  3. Replies: 1
    Last Post: 14th November 2008, 02:01 PM
  4. Help with NTFS permissions problem...
    By kennysarmy in forum Windows
    Replies: 5
    Last Post: 7th February 2008, 03:29 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •