Problem with mkdir

Problem with mkdir

Postby karainier » Thu Apr 24, 2014 5:07 am

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.
karainier
 
Posts: 25
Joined: Sun Apr 13, 2014 9:01 pm

Re: Problem with mkdir

Postby Jocko » Thu Apr 24, 2014 7:15 am

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
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Problem with mkdir

Postby karainier » Sun Apr 27, 2014 1:50 pm

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?
karainier
 
Posts: 25
Joined: Sun Apr 13, 2014 9:01 pm

Re: Problem with mkdir

Postby fvdw » Sun Apr 27, 2014 2:21 pm

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...
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Problem with mkdir

Postby karainier » Sun Apr 27, 2014 3:00 pm

Could i disable it from init.d then have it boot using rc.local and smb.conf as the config file?
karainier
 
Posts: 25
Joined: Sun Apr 13, 2014 9:01 pm

Re: Problem with mkdir

Postby fvdw » Sun Apr 27, 2014 6:32 pm

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
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Problem with mkdir

Postby karainier » Sun Apr 27, 2014 6:47 pm

Ok, I'm still learning a lot about both environments and experimenting helps. Thank you for pointing these things out and being so helpful :)
karainier
 
Posts: 25
Joined: Sun Apr 13, 2014 9:01 pm


Return to Development

Who is online

Users browsing this forum: No registered users and 10 guests