+ Post New Thread
Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
Mac Thread, Unable to empty trash - permissions problem in Technical; Originally Posted by Marci Ah... can't show you then.... n/mind!! You ain't gonna believe this, but I've done it again, ...
  1. #16
    theeldergeek
    Guest
    Quote Originally Posted by Marci View Post
    Ah... can't show you then.... n/mind!!

    You ain't gonna believe this, but I've done it again, and deleted a users folder which now won't empty from the trash!

    I have thus far done :

    sudo chmod -R 777 <path to folder>

    at which point I have entered a password, which was seemingly accepted.

    I am doing this on the xserve via Remote Desktop.

    I am in terminal, have changed the directory to .Trash and when I type :

    ls -l

    I get

    drwxr-x--- 14 067 staff 476 1 Dec 14:05 03jmorley.old

    however, when I type

    sudo chown -R tim /03jmorley.old

    I get

    No such file or directory

    Clearly I am doing something wrong.

    Help!

  2. #17
    DMcCoy's Avatar
    Join Date
    Oct 2005
    Location
    Isle of Wight
    Posts
    3,464
    Thank Post
    10
    Thanked 496 Times in 436 Posts
    Rep Power
    113
    If you cannot delete the files from the recycle bin on the server then they may be locked by another process, you will need to restart the server and empty the bin.


    Also if you are in the current folder with 03jmorley.old in then your path is wrong.


    sudo chown -R tim ./03jmorley.old
    sudo chown -R tim 03jmorley.old
    sudo chown -R tim /.Trash/03jmorley.old (for the local server).

    Also look in .Trashes if it exist.

    Edit: you may need ~/.Trash/03jmorley.old etc if your folder is on a remote server
    Last edited by DMcCoy; 2nd December 2009 at 03:02 PM.

  3. #18
    Marci's Avatar
    Join Date
    Jun 2008
    Location
    Wakefield, West Yorkshire
    Posts
    895
    Thank Post
    84
    Thanked 235 Times in 194 Posts
    Rep Power
    82
    I am in terminal, have changed the directory to .Trash and when I type :
    ls -l
    I get
    drwxr-x--- 14 067 staff 476 1 Dec 14:05 03jmorley.old
    however, when I type
    sudo chown -R tim /03jmorley.old
    I get
    No such file or directory

    Clearly I am doing something wrong.
    The / that you've put in front of the filename is causing it to go back to the root of the drive to look for the file. Head into terminal, into the .Trash directory,

    ls -l (to confirm you're in the right place)

    You should see exactly as you posted above:

    drwxr-x--- 14 067 staff 476 1 Dec 14:05 03jmorley.old

    If you do, then copy and paste the following into terminal:
    Code:
    sudo chown -R tim 03jmorley.old && chmod 777 03jmorley.old && rm 03jmorley.old
    && joins commands together so you can run them in one hit. The above changes the owner to you, changes the permissions to full access, then removes the file.

    For common trash issues with permissions etc - http://www.thexlab.com/faqs/trash.html

    @DMcCoy - Ideally server reset shouldn't be necessary to unlock a file... run lsof <filename> and it'll return all processes using that file, which you can then kill -9 <processid> to get rid of those processes and remove the lock on the file. Reset is only necessary if the process locking the file is "login_window" or "kerneltask" or similar... as to kill those will log you out.
    Last edited by Marci; 2nd December 2009 at 03:49 PM.

  4. #19

    Join Date
    May 2006
    Location
    West Bromwich
    Posts
    2,191
    Thank Post
    299
    Thanked 215 Times in 185 Posts
    Rep Power
    56
    On leopard if a file is locked (not sure if just read only files or in use files) but holding down the alt key whilst emptying the trash will empty it even if the files are locked.

SHARE:
+ Post New Thread
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 10
    Last Post: 12th November 2009, 01:37 PM
  2. 2K3 Member Server Permissions Problem
    By SYSMAN_MK in forum Windows Server 2000/2003
    Replies: 10
    Last Post: 3rd September 2009, 04:42 PM
  3. Replies: 1
    Last Post: 14th November 2008, 01:01 PM
  4. Help with NTFS permissions problem...
    By kennysarmy in forum Windows
    Replies: 5
    Last Post: 7th February 2008, 02: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
  •