Permissions problem

Hi
I’m running OpenSuse 10.3 and I’ve tried to set permissions on my folder and subfolders from root:root to wwwrun:www.
In the shell it shows all folders and files with the correct permissions, but in the GUI it still says root:root and so my web application can’t write to it, until I manually set the subfolders permission in the GUI.

Any Ideas?

Thanks
Steven

Welcome to the Forums.

That said, what you describe is really strange. However you are a bit vague at calling things by name. E.g. with “my folder” you probably mean a directory, but which one. Give it a name by showing:

ls -l <my-folder>

and then, maybe you could show a pic from where the GUI says something.

Edit: I do not think that the openSUSE level has anything to do with this particular problem, but 10.3 is no longer supported and thus you will already be behind with security updates. Try to update to e.g. 11.2 asap.

Hi Henk
I’ve taken the screenshot, but how do I upload it?
I agree we need to upgrade, but this must me solvable on 10.3.
Basically I’ve got a directory www which I’ve set to wwwrun:www and checked the box to apply to sub folders and contents. but my sub directories (in this case “assets”) still show root:root when I go to it’s properties in the GUI, but in the shell it shows wwwrun:www. But when wwwrun tries to write to it, it gets access denied, until I manually set the permission on that folder.

Thanks
Steven

At least you could have copy/pasted the* ls -l *output I asked for. No need for screen shots there. Talking about “I have a www folder” is not helping very much.

boven:~ # ls -l /srv/www
total 12
drwxr-xr-x 2 root root 4096 Jan  5 21:03 cgi-bin
drwxr-xr-x 5 root root 4096 Jan  6 17:19 htdocs
drwxr-xr-x 2 root root 4096 Oct 30 18:41 perl-lib
boven:~ #

is.

I do not know if we need screenshots in fact. The CLI is telling much mote in much less of space and time. But people who want to show screen shots often opload them to some free web site for this and them provide the link. I myself have a small website space at my ISP where I can put such things.

here you go

database:/delphi/Mobius # ls -l www |more
total 2752
drwxrwxrwx 13 wwwrun www 4096 2009-04-03 10:06 adodb
drwxrwxrwx 2 wwwrun www 4096 2009-04-24 13:56 assets
-rwxrwxrwx 1 wwwrun www 5068 2010-02-18 15:43 audit.inc.php
-rwxrwxrwx 1 wwwrun www 495 2010-03-10 09:51 autotab.inc.php
drwxrwxrwx 12 wwwrun www 4096 2010-01-07 08:26 cacti

But as I say, the GUI shows root:root and wwwrun can’t write to the folder.

Thanks
Steven

And please who owns* /delphi* and* /delphi/Mobius* and what are the access bits there?

ls -la /delphi 
ls -la /delphi/Mobius

and are you sure your GUI (whatever silly program that is) is at /delphi/Mobius/?

LOL, by GUI I mean KDE, so when I right click the folder in konqueror, and check the permissions there, they are not the same as the permissions in the shell.
here is the info you wanted on the directories

database:/ # ls -la /delphi
total 160
drwxr-xr-x 3 root root 4096 2010-02-24 09:45 .
drwxr-xr-x 24 root root 4096 2009-12-22 12:16 …
-rwxr–r-- 1 root root 988 2009-12-18 09:11 AlrodeDNotes.txt
-rwxr–r-- 1 root root 988 2009-12-17 15:48 CapeDNotes.txt
-rwxr–r-- 1 root root 42502 2010-03-23 07:59 CXTIM.TXT
-rwxr–r-- 1 root root 959 2009-12-18 09:11 DNotesPack2.txt
-rwxr–r-- 1 root root 14968 2008-07-31 11:09 it_helpdesk.phtml
drwxr-xr-x 9 root root 4096 2009-12-21 12:50 Mobius
-rwxr–r-- 1 root root 12153 2009-04-06 13:32 OLE-1.0.0RC1.tgz
-rwxr–r-- 1 root root 988 2009-12-15 16:18 PineTownDNotes.txt
-rwxr–r-- 1 root root 55037 2009-04-06 13:25 Spreadsheet_Excel_Writer-0.9.1.tgz
database:/ # ls -la /delphi/Mobius
total 1176
drwxr-xr-x 9 root root 4096 2009-12-21 12:50 .
drwxr-xr-x 3 root root 4096 2010-02-24 09:45 …
-rwxr–r-- 1 root root 0 2010-01-13 13:16 AlrodeDNotes.txt
-rwxr–r-- 1 root root 0 2010-01-11 13:51 CapeDNotes.txt
drwxrwxrwx 5 wwwrun www 4096 2009-11-10 11:26 change_control
drwxr-xr-x 2 root root 20480 2010-01-12 11:59 Client
-rwxr–r-- 1 root root 49664 2008-11-13 13:56 ClientBranchExpenses.bpl
-rwxr–r-- 1 root root 45056 2008-11-13 13:56 ClientJournalsSummary.bpl
-rwxr–r-- 1 root root 54272 2008-11-13 13:56 ClientPCReturnsSummary.bpl
-rwxr–r-- 1 root root 46592 2008-11-13 13:56 ClientPettyCashReceipts.bpl
-rwxr–r-- 1 root root 47616 2008-11-13 13:56 ClientPettyCashRequisitions.bpl
-rwxr–r-- 1 root root 51712 2008-11-13 13:56 ClientStoresJournals.bpl
-rwxr–r-- 1 root root 65536 2008-10-24 13:45 CMSCensus.dll
-rwxr–r-- 1 root root 0 2010-01-19 09:44 DNotesPack2.txt
drwxr-xr-x 14 root root 12288 2009-03-09 08:04 LIVE
-rwxr–r-- 1 root root 2760 2006-04-12 11:48 logo_server_clean.JPG
-rwxr–r-- 1 root root 2699 2006-03-24 08:33 logo_server.jpg
-rwxr–r-- 1 root root 107008 2008-11-17 09:23 MAL.exe
-rwxr–r-- 1 root root 2988 2006-02-16 09:56 MALlogo.JPG
-rwxr–r-- 1 root root 611840 2008-11-17 09:36 MobiusCMS.exe
drwxr-xr-x 2 root root 4096 2008-09-15 08:48 MSGS
drwxr-xr-x 2 root root 4096 2008-09-04 08:33 OnlineSpool
-rwxr–r-- 1 root root 0 2010-01-11 11:47 PineTownDNotes.txt
drwxrwxrwx 30 wwwrun www 4096 2010-02-22 14:22 www
drwxr-xr-x 26 root root 12288 2008-09-15 07:51 www_old
database:/ #

I am still convinced that you are looking with Konqui at a different place then you think you are. And because the peeping with Konqui is not the problem, your real problem is that your applic (Apache2 ?) points to the wrong directory. Can we, to prove if I am right or wrong, do a search for all files/directories with name Mobius?

find / -name 'Mobius'

And please put computer output between CODE tags. This saves the readability of output. Compare my example of ls output with yours.
How to do this? Select the computer text and click on the # sign above the input field.

sccooke wrote:
> I’m running OpenSuse 10.3

openSUSE 10.3 is unsupported software which has not had any security
updates or patches since Oct 2009…

however, i have a feeling that maybe you are actually running SUSE
Linux Enterprise Desktop 10 SP 3, also known as SLED 10 3 (or 10 SP3
or in the worst case 10.3)

please do the following in a terminal to see exactly what you have:


cat /etc/issue

and, from the questions you are asking it seem apparent you don’t have
the background necessary to keep openSUSE 10.3 manually updated and
safe…so, i do hope you don’t expose it to the internet EVER, and on
company networks only if you are certain all employees are both
totally honest and will always remain loyal to the enterprise…

by the way, i noticed in your earlier posting this:


database:/delphi/Mobius # ls -l www |more

and, wonder two things, why you piped though more (which was not as
hcvv asked for) and secondly why and how did you sign in as root? did
you log into KDE as root, or was the root login in the terminal, only?


palladium

Henk, here is the output you requested, I am definitely looking in the correct place.

database:/ # find / -name 'Mobius'
/delphi/Mobius
database:/ #

Palladium, I piped to more because there are a lot of files in the folder and I didn’t want to make this thread full of rubbish.

Here is the version output you wanted.


database:/ # cat /etc/issue

Welcome to openSUSE 10.3 (i586) - Kernel \r (\l).


database:/ # 

I agree that I’m no Linux expert, and I realise we are on an old version, but we operate 24/7 and this is also our database server, so we can’t update all the time, but no, it is not exposed to the internet, and we su to root.

i read it all again and admit: you win, i’m stumped…


palladium

  • 1 here.

@sccooke. I am afraid that in this phase of our quest I realy am wanting to sit with you at the terminal. This type of remote diagnose is not fit for every problem.

I will think it over again, but I can not promise I will return with something genious :frowning: