I tried to ssh to root using password ‘root’, as per this thread. I get the response ‘Permission denied, please try again.’
My 5N has been restarted numerous times since the install of the effected firmware.
How do I reset root’s password/access root?
If you have a recent version of the firmware (> 3.3.0), the root account is disabled. This is done for security reasons. You can still login as the admin account, and use sudo.
Many thanks Ricardo. I am on the latest firmware. I’m a bit behind the times as I wasn’t aware that root was blocked entirely. Is sudo installed though? I can’t see it in Drobo Apps.
I’ve got permissions issues on some folders in one of my shares. After I log in as Admin, when I try an cd to the folder I get:
-sh: cd: can’t cd to /mnt/DroboFS/Shares/Media/Movies/
When I try and sudo that command I get:
sudo: cd: command not found
If you don’t mind me asking, why are you trying to access the shares through SSH? It seems like you can do solve your problem through the traditional way, that is, via network mounts.
What are the permissions of that folder? I.e., what is the output of ‘ls -la /mnt/DroboFS/Shares/Media/’ ?
[quote=“ricardo, post:4, topic:142780”]
why are you trying to access the shares through SSH?[/quote]
Ok, I seem to have no problem accessing the folders via my Ubuntu box and my Macs. They access my Drobo shares no problems and create folders/files without any hassles, it seems. My problem started when one of my Ubuntu services created a movie folder with a “/” in the folder and file name, and now I can’t delete the folder. I thought the only way I’d be able to delete it was from within the Drobo itself? That’s when I discovered that I couldn’t cd to these folder in the Drobo itself using Admin.
I’m not at home at the moment. From memory the user/group was root/root, with user have read write execute, and I’m unsure of the group permissions (one of them was “S” I think). I’ll add this info when I’m at home later.
On a tangent, if a basic user like myself might be best sticking with network mounts (hey, I agree - I can copy/paste commands with the best of them, just don’t ask me what they mean!
what is sudo useful for then?
I suppose I wanted to make sure I had appropriate access levels to the folders as I was thinking about investigating installing rsync on the Drobo 5N so I could back it up to a Drobo 4D 2nd gen that’s attached to one of my Macs. I thought my Admin user having permissions issues might prove to be a problem if I eventually tried doing that?
Cheers!
So as below from directories DS.Archive2 to Movies. Are the group permissions affecting Admin’s access to these directories through ssh?
Drobo5N:~ $ ls -la /mnt/DroboFS/Shares/Plex.Media/
drwxrwxrwx 16 root root 4096 Jun 25 20:25 ./
drwxr-xr-x 6 root root 4096 Oct 9 2015 ../
drwxrwxrwx 2 root root 4096 May 9 2014 .AppleDesktop/
-rwxr--r-- 1 root root 14340 Jun 25 20:40 .DS_Store*
drwx--S--- 4 root root 4096 May 11 2014 .TemporaryItems/
-rw-rw-rw- 1 root root 223154 Jul 29 2014 .VolumeIcon.icns
-rwxr--r-- 1 root root 368 Apr 17 13:39 ._.DS_Store*
-rwxr--r-- 1 root root 4096 Mar 26 23:27 ._???*
-rwxrwxrwx 1 root root 296 May 11 2014 .apdisk*
drwxr-xr-x 22 root root 4096 Jun 25 20:05 DS.Archive2/
drwxr-xr-x 4 root root 4096 Jun 25 20:24 DS.Scifi.Archive/
drwx--S--- 137 root root 12288 Jun 25 19:03 Doco.Series/
drwx--S--- 74 root root 4096 Jun 18 19:24 Documentaries/
drwxr-xr-x 2 root root 4096 Jun 22 01:09 Downloads/
drwx--S--- 45 root root 4096 Jun 25 19:08 Drama.Series/
drwx--s--x 20 root root 16384 May 27 00:31 Misc.TV/
drwx--S--- 857 root root 57344 Jun 27 13:10 Movies/
drwxrwxrwx 3 root root 4096 May 9 2014 Network Trash Folder/
drwxrwxrwx 3 root root 4096 May 9 2014 Temporary Items/
That is quite frankly amazing.
I always thought that it was impossible to create a file or folder with an ‘/’ in the name, since that is supposed to be a reserved character.
Long story short, yes.
For this particular situation that you are in (the folder with a ‘/’ in the name), you’ll have to do this:
sudo find /mnt/DroboFS/Shares/Media -type d -exec chmod a+rwx {} \;
sudo find /mnt/DroboFS/Shares/Media -type f -exec chmod a+rw {} \;
The first line fixes the permissions of all folders (full explanation), the second line fixes the permissions of all files (full explanation).
After that I would recommend sticking to smbmount on Ubuntu. I’m pretty sure you won’t be able to create an invalid folder name over samba.
It worked like a dream!
Permissions now:
Drobo5N:~ $ sudo find /mnt/DroboFS/Shares/Plex.Media -type d -exec chmod a+rwx {} \;
Password:
Drobo5N:~ $ sudo find /mnt/DroboFS/Shares/Plex.Media -type f -exec chmod a+rw {} \;
Drobo5N:~ $ ls -la /mnt/DroboFS/Shares/Plex.Media/
drwxrwxrwx 22 root root 4096 Jun 25 20:05 DS.Archive2/
drwxrwxrwx 4 root root 4096 Jun 25 20:24 DS.Scifi.Archive/
drwxrwsrwx 138 root root 12288 Jun 30 01:11 Doco.Series/
drwxrwsrwx 74 root root 4096 Jun 18 19:24 Documentaries/
drwxrwxrwx 2 root root 4096 Jun 30 01:11 Downloads/
drwxrwsrwx 45 root root 4096 Jun 25 19:08 Drama.Series/
drwxrwsrwx 20 root root 16384 May 27 00:31 Misc.TV/
drwxrwsrwx 860 root root 57344 Jun 30 07:28 Movies/
drwxrwxrwx 3 root root 4096 May 9 2014 Network Trash Folder/
drwxrwxrwx 3 root root 4096 May 9 2014 Temporary Items/
and the offending folder gone (the slash won’t paste here, but it was where the space between the 50 50 is):
Drobo5N:/mnt/DroboFS/Shares/Plex.Media/Movies $ la 5*
50 50 (2011):
./ ../ .AppleDouble/ 50???50 (2011).srt*
Drobo5N:/mnt/DroboFS/Shares/Plex.Media/Movies $ rm -r 5*
Drobo5N:/mnt/DroboFS/Shares/Plex.Media/Movies $ la 5*
ls: 5*: No such file or directory
Cheers and thank you so much for your help!
I’m glad that it worked out for you.
For future reference, that was not a ‘/’ character, it was a Unicode character. Probably something that looks like a slash, but isn’t really one.
Getting this issue now… Whats the password for root?
Yep you can retrieve data by yourself. There are programs to do that. For example Password Manager
I used it few times.
But there is a sad news. I’m not sure but most of these programs work with NTFS and FAT32 files systems. I recently tried to find something that would work with ext4 but I was unsuccessful. So, because OS X is using HFS+ file system there could be problem with software. But I can’t believe that they don’t exist.
To sum up try to google “recovering HFS+ partition” or find program for recovering data that can work with HFS+ file system.
Good luck!