Jump to content

[SOLVED] hosed my permissions..help needed


chuga

Recommended Posts

Hi,

 

I was organizing files on unraid server this morning, in particular I switched my "movies" to split level 2.  Then I started copying movies from disk1 to disk2 than were previously split (I had split level to 0 when originally copied all my files to the unraid box  :(   ).

 

I messed up in a few places...

 

1) around this time I was messing with creating users,  I originally just had root, then created a user "chuga" which is my windows user name also.

2) I used windows explorer to drag/drop small files (folder.jpg, etc) because it was quick

3) for large files (video_ts folders) I used telnet "MV" command

 

During my first "mv" move it was taking a long time and I did not know if it was hanging up or working so I cancelled it.  

 

Now I can't view any of the files in my movie folder via windows explorer, but they are there when using telnet "ls'.

 

I guess my question after all of this rambling is, is there a command (chmod? ) where I can run on the whole "movies" directory which will "fix" any permissions issues for all the movies files and subfolders?

 

doing a "ls -l" does show me that I have different permissions for folders...here is what I think happened:

--during a telnet "mv" it must make the destination folder hidden/different permissions.  When you stop a move by ctrl-C it does not fix a permission.

--during windows drag n' drop via explorer if you have a user account created on unraid with same user/psswd it uses that instead of root for file permissions.

 

just my guesses...

thanks very much

 

 

Link to comment

this might help...here is a copy showing permissions on two different directories.  You can see "chuga" showing up some.  also "root". 

 

root@Tower:~# ls -l /mnt/disk2/Movies/Action/"Bullitt (1968)"

total 4116

drwxrwx--- 2 nobody users      48 2011-12-21 15:15 AUDIO_TS/

drwx------ 2 root  root      720 2011-12-28 12:01 VIDEO_TS/

-rw-rw---- 1 nobody users  192564 2011-12-25 15:19 VTS_01_0.TAG

-rw-rw---- 1 nobody users 1202083 2011-12-21 15:33 backdrop.jpg

-rw-rw---- 1 nobody users  476871 2011-12-21 15:33 backdrop1.jpg

-rw-rw---- 1 nobody users  354141 2011-12-21 15:33 backdrop2.jpg

-rw-rw---- 1 nobody users  113723 2011-12-21 15:33 backdrop3.jpg

-rw-rw---- 1 nobody users 1202083 2011-12-21 15:33 fanart.jpg

-rw-rw---- 1 nobody users  642051 2011-12-21 15:33 folder.jpg

-rw-rw---- 1 nobody users  10677 2011-12-21 15:33 mymovies.xml

root@Tower:~# ls -l /mnt/disk2/Movies/Action/"Goodfellas (1990)"

total 920

-rw-rw---- 1 nobody users    112 2010-01-30 10:59 Goodfellas\ (1990).dvdid.xml

-rw-rw---- 1 nobody users  9728 2010-02-02 21:02 Thumbs.db

drwxrwx--- 2 nobody users    432 2011-12-04 19:39 VIDEO_TS/

-rw-rw---- 1 chuga  users 193881 2011-12-25 15:26 VTS_01_0.TAG

-rw-rw---- 1 nobody users 223359 2010-01-30 10:59 backdrop.jpg

-rw-rw---- 1 chuga  users 223359 2010-01-30 10:59 fanart.jpg

-rw-rw---- 1 nobody users 246835 2010-01-30 10:59 folder.jpg

-rw-rw---- 1 nobody users  2019 2010-01-30 10:59 movie.nfo

-rw-rw---- 1 nobody users  23300 2011-07-23 12:44 mymovies.xml

root@Tower:~#

 

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...