Page 1 of 1
File permissions
Posted: 30 Jan 2007, 21:28
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 ?
Posted: 31 Jan 2007, 03:24
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
For those in a hurry
Posted: 03 Feb 2007, 21:31
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);
File permissions
Posted: 07 Apr 2007, 12:08
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 ?
Posted: 09 Apr 2007, 17:26
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
Firmware Upgade does it all
Posted: 19 Apr 2007, 17:29
by lkbrow1
With the Firmware upgrade I am getting exactly what I was looking for.
Now I can easily maintain my remote web server from work. Thank you for
a truley great product.