openSUSE 12.3 Beta 1 - fails read-write on mkdir with root user

creating a folder in dolphin or in konsole fails the correct rights of root.
anyone notice this also?

user@user-openSUSE:/Harddisk/Data/test> ls -l
totaal 0
user@user-openSUSE:/Harddisk/Data/test> sudo mkdir testdir
root's password:
user@user-openSUSE:/Harddisk/Data/test> ls -l
totaal 4
drwxr-xr-x 2 root root 4096  5 feb 17:54 testdir
user@user-openSUSE:/Harddisk/Data/test> mv testdir testdir1
user@user-openSUSE:/Harddisk/Data/test> ls -l
totaal 4
drwxr-xr-x 2 root root 4096  5 feb 17:54 testdir1
user@user-openSUSE:/Harddisk/Data/test> 

I’m pretty sure that I have created directories as root in Beta1. I did not have any problems.

I would have done that at a command line (either xterm or Konsole). I have not tried running dolphin as root.

Did you try to rename the dir also?
i can rename it and delete as a normal user.

On 02/05/2013 11:26 AM, heelstraf wrote:
>
> nrickert;2524790 Wrote:
>> I’m pretty sure that I have created directories as root in Beta1. I did
>> not have any problems.
>>
>> I would have done that at a command line (either xterm or Konsole). I
>> have not tried running dolphin as root.
>
>
> Did you try to rename the dir also?
> i can rename it and delete as a normal user.

What are the privileges of /Harddisk/Data/test? That is where you are making the
changes - I bet that directory has write privilege for your user.

that is a directory of the user,
what can i do for root only and read for user on the dir testdir?

if i make a dir in / than it seems to work good, it’s root and read only.

On 02/05/2013 11:56 PM, heelstraf wrote:
>
> lwfinger;2524820 Wrote:
>>
>>
>> What are the privileges of /Harddisk/Data/test? That is where you are
>> making the
>> changes - I bet that directory has write privilege for your user.
>
>
> that is a directory of the user,
> what can i do for root only and read for user on the dir testdir?
>
> if i make a dir in / than it seems to work good, it’s root and read
> only.

That is because / is owned by root. You need to put your directory in a similar
tree. As long as testdir is in a directory owned by the user, that user will be
able to delete or rename it. In any case, this problem is not a bug in openSUSE
12.3, but is normal behavior in Linux.

What are you trying to do?

I want to save pictures/movies that i can see as user but no rename or delete, just read only.
In the past, couple of years ago, i was able to do this with explanation here above.
now i use another hardisk for that (sda5 mounted as /Harddisk/Media owned by root)

So i did the follow as a test:

  • sda4 mounting on /Harddisk/Data
  • with root i did /Harddisk/Data = all acces rights i believe 777
  • as user /Harddisk/Data/test
  • as root /Harddisk/Data/test/testdir

so “/Harddisk/Data/test/testdir” this dir should be read only for users.

On 02/06/2013 11:26 AM, heelstraf wrote:
> /Harddisk/Data/test
> I want to save pictures/movies that i can see as user but no rename or
> delete, just read only.
> In the past, couple of years ago, i was able to do this with
> explanation here above.
> now i use another hardisk for that (sda5 mounted as /Harddisk/Media
> owned by root)
>
>
> So i did the follow as a test:
> - sda4 mounting on /Harddisk/Data
> - with root i did /Harddisk/Data = all acces rights i believe 777
> - as user /Harddisk/Data/test
> - as root /Harddisk/Data/test/testdir
>
> so “/Harddisk/Data/test/testdir” this dir should be read only for
> users.

You need to make /Harddisk/Data/test owned by root. As long as that directory is
owned by the user, then any file in that directory (such as the testdir
directory) can be manipulated according to the privileges of the test directory.
Alternatively, you can make the whole tree be read only.

OK, i make sense
thx