Page 1 of 1
Problem with mkdir

Posted:
Thu Apr 24, 2014 5:07 am
by karainier
Hello,
I've been using mkdir to create files in an ssh session in /share/1000. I've noticed that these directories do not show up in the file share management system of the web app. Nor is there a way to create sub directories in the web app. Does anyone know why this might be?
using firmware 15.1 on cloudbox 2tb, GPT.
Re: Problem with mkdir

Posted:
Thu Apr 24, 2014 7:15 am
by Jocko
Hi karainier,
:disapprove
It is not the good way to do it.
Create a folder in /share/1000 is not enough so that the servers (ftp, samba,...) handle it (at least the nas database must be updated, and some servers restarted).
Note: with your way, the new folder doesn't have the right permissions and you can use forbidden characters in its name.
So the easy way is to create a new share via the file share management menu :doh
Re: Problem with mkdir

Posted:
Sun Apr 27, 2014 1:50 pm
by karainier
Ok, I've found the necessary DB files to update and set necessary permissions. Where is the samb.conf file, if I wish to make changes to the samba server?
Re: Problem with mkdir

Posted:
Sun Apr 27, 2014 2:21 pm
by fvdw
karainier wrote:Ok, I've found the necessary DB files to update and set necessary permissions. Where is the samb.conf file, if I wish to make changes to the samba server?
I can specify it, but it is overwritten at each boot...
Re: Problem with mkdir

Posted:
Sun Apr 27, 2014 3:00 pm
by karainier
Could i disable it from init.d then have it boot using rc.local and smb.conf as the config file?
Re: Problem with mkdir

Posted:
Sun Apr 27, 2014 6:32 pm
by fvdw
you must realize that this is not a pc running Linux. It is a nas with boot scripts that setup some things automatic, amongst other the samba server.
What you could do is after boot kill the samba server and start it again using your own smb.conf file.
Ours is in /usr/lib but it is a symlink to /rw_fs/tmp/usr/lib/smb.conf
This symlink is created every boot
Re: Problem with mkdir

Posted:
Sun Apr 27, 2014 6:47 pm
by karainier
Ok, I'm still learning a lot about both environments and experimenting helps. Thank you for pointing these things out and being so helpful :)