New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

File permissions

Got problems with Bubba? Then this forum is for you.
Locked
lkbrow1
Posts: 28
Joined: 30 Jan 2007, 21:22

File permissions

Post by lkbrow1 »

When uploading a file from the file manager to the public
web pages /home/web , The file permissions are rw- --- ---
with user = user and group = users. If I edit a page and
replace it these file permissions, the page no longer works.
is there any way to change the file permissions to rw- rw- ---
when files are uploaded ?
johannes
Posts: 1470
Joined: 31 Dec 2006, 07:12
Location: Sweden
Contact:

Post by johannes »

(I took the liberty to move your post to the support thread)

Yes, this is a known issue with the upload function. It is actually solved in our next software release (due within short, probably within one week), where the permissions are set better.

Edit: Corrected a mistake here.

Until then, you can:
- use ssh (i.e. putty from windows) to log on to your Bubba
- log on as yourself (normal user/password)
- type 'su' to become root. The password is 'excito'.
- browse to the files you want to change permissions on
- use the 'chmod' command to change the permissions. Type chmod -help for information
/Johannes (Excito co-founder a long time ago, but now I'm just Johannes)
lkbrow1
Posts: 28
Joined: 30 Jan 2007, 21:22

For those in a hurry

Post by lkbrow1 »

I fixed the problem by editing the file /usr/share/web-admin/upload.cgi with the following line at line 178 with the "$mode" line.

close($tmp_fh);

$mode = 0666; chmod $mode, $tmp_filename;
$fsize =(-s $fh);
lkbrow1
Posts: 28
Joined: 30 Jan 2007, 21:22

File permissions

Post by lkbrow1 »

In your post you said the software release would solve this problem. Actually it has made it worst for me because my modification no longer works since upload.cgi is a binary file now.

Any ideas how to upload a file to the web pages and have the permissions so that it is viewable ?
tor
Posts: 703
Joined: 06 Dec 2006, 12:24
Contact:

Post by tor »

Hi,

I think an apology is in its place. This bug got down prioritized earlier and then we missed it. This should normally not happen.

I can however inform you that the next update, due sometimes in a week, includes both the fix that uploads to web and storage is readable by all and the web-admin filemanager has got a refresh with updated capabilities regarding settings of permissions on files and directories.

/Tor
Co-founder OpenProducts and Ex Excito Developer
lkbrow1
Posts: 28
Joined: 30 Jan 2007, 21:22

Firmware Upgade does it all

Post by lkbrow1 »

With the Firmware upgrade I am getting exactly what I was looking for. :D
Now I can easily maintain my remote web server from work. Thank you for
a truley great product.
Locked