GNU/Linux S5R3 App 4.49 available for Beta test

Perle
Perle
Joined: 22 Jan 05
Posts: 47
Credit: 2167518760
RAC: 1635185

I would ass-ume so, but how

I would ass-ume so, but how do I confirm it.

**edit** I have gone through and made sure my user has permissions.
but I am still not sure if I have it correctly.
me = ubuntu rookie.

M. Schmitt
M. Schmitt
Joined: 27 Jun 05
Posts: 478
Credit: 15872262
RAC: 0

RE: I would ass-ume so, but

Message 81821 in response to message 81820

Quote:
I would ass-ume so, but how do I confirm it.

In my case the user boinc(member of a group named boinc) runs boinc and the apps.
Change to your ".../projects/einstein.phys.uwm.edu" directory and do
ls -l ./ei*

My output:
micha@luemmel:/usr/local/BOINC/projects/einstein.phys.uwm.edu> ls -l ./ei*
-rwxr-xr-- 1 boinc boinc 3867487 14. Mai 12:41 ./einstein_S5R3_4.491_graphics_i686-pc-linux-gnu
-rwxr-xr-- 1 boinc boinc 449913 14. Mai 13:53 ./einstein_S5R3_4.491_i686-pc-linux-gnu
-rwxr-xr-- 1 boinc boinc 4849253 14. Mai 12:41 ./einstein_S5R3_4.491_i686-pc-linux-gnu_0
-rwxr-xr-- 1 boinc boinc 4867308 14. Mai 11:45 ./einstein_S5R3_4.491_i686-pc-linux-gnu_1

Don't get mixed up about my renamed apps.
As you can see, the user boinc and all members of the group boinc are allowed to run the apps, but nobody else(except root of cause).
The app_info.xml only needs to be readable for the boinc user, so it does not matter which user copied the file into the folder. Normaly it's readable for everyone(world).

cu,
Michael

M. Schmitt
M. Schmitt
Joined: 27 Jun 05
Posts: 478
Credit: 15872262
RAC: 0

RE: I would ass-ume so, but

Message 81822 in response to message 81820

Quote:

I would ass-ume so, but how do I confirm it.

**edit** I have gone through and made sure my user has permissions.
but I am still not sure if I have it correctly.
me = ubuntu rookie.

You can figure out which user is actualy runnig boinc by executing

ps -FC boinc

The first column(UID) shows the boinc user.

cu,
Michael

Perle
Perle
Joined: 22 Jan 05
Posts: 47
Credit: 2167518760
RAC: 1635185

...in terminal ?

...in terminal ? right?

perle@Stan:~$ ps -FC boinc
UID PID PPID C SZ RSS PSR STIME TTY TIME CMD
perle@Stan:~$

Okay....then after entering my password 10 different times even tho I am the only user on machine!!
I have to sudo the ls command.
perle@Stan:/var/lib/boinc-client/projects/einstein.phys.uwm.edu$ sudo ls -l ./ei*
ls: cannot access ./ei*: No such file or directory

If i drop the ./ei* i get this
perle@Stan:/var/lib/boinc-client/projects/einstein.phys.uwm.edu$ sudo ls
app_info.xml h1_1091.45_S5R3
earth_05_09 h1_1091.50_S5R3
einstein_S5R3_4.38_graphics_i686-pc-linux-gnu h1_1091.55_S5R3
einstein_S5R3_4.38_i686-pc-linux-gnu h1_1091.60_S5R3
einstein_S5R3_4.38_i686-pc-linux-gnu_0 l1_1091.20_S5R3
einstein_S5R3_4.38_i686-pc-linux-gnu_1 l1_1091.25_S5R3
einstein_S5R3_4.49_graphics_i686-pc-linux-gnu l1_1091.30_S5R3
einstein_S5R3_4.49_i686-pc-linux-gnu l1_1091.35_S5R3
einstein_S5R3_4.49_i686-pc-linux-gnu_0 l1_1091.40_S5R3
einstein_S5R3_4.49_i686-pc-linux-gnu_1 l1_1091.45_S5R3
h1_1091.20_S5R3 l1_1091.50_S5R3
h1_1091.25_S5R3 l1_1091.55_S5R3
h1_1091.30_S5R3 l1_1091.60_S5R3
h1_1091.35_S5R3 skygrid_1100Hz_S5R3.dat
h1_1091.40_S5R3 sun_05_09

M. Schmitt
M. Schmitt
Joined: 27 Jun 05
Posts: 478
Credit: 15872262
RAC: 0

RE: ...in terminal ?

Message 81824 in response to message 81823

Quote:
...in terminal ? right?


Yes

Quote:
perle@Stan:~$ ps -FC boinc
UID PID PPID C SZ RSS PSR STIME TTY TIME CMD
perle@Stan:~$

OK, better use: ps -Fp `pidof boinc`
Watch out the 'backticks'.
or do it the simple way:
> pidof boinc
result e.g.: 3864
> ps -Fp 3864
UID PID PPID C SZ RSS PSR STIME TTY TIME CMD
boinc 3864 1 0 8173 8168 1 12:48 ? 00:00:14 /usr/local/BOINC/boinc -dir /usr/local/BOINC -allow_remote_gui_rpc

Quote:
Okay....then after entering my password 10 different times even tho I am the only user on machine!!
I have to sudo the ls command.
perle@Stan:/var/lib/boinc-client/projects/einstein.phys.uwm.edu$ sudo ls -l ./ei*
ls: cannot access ./ei*: No such file or directory

You are not allowed to see the content of the folder.

Quote:
If i drop the ./ei* i get this
perle@Stan:/var/lib/boinc-client/projects/einstein.phys.uwm.edu$ sudo ls
app_info.xml h1_1091.45_S5R3
earth_05_09 h1_1091.50_S5R3
einstein_S5R3_4.38_graphics_i686-pc-linux-gnu h1_1091.55_S5R3
einstein_S5R3_4.38_i686-pc-linux-gnu h1_1091.60_S5R3
einstein_S5R3_4.38_i686-pc-linux-gnu_0 l1_1091.20_S5R3
einstein_S5R3_4.38_i686-pc-linux-gnu_1 l1_1091.25_S5R3
einstein_S5R3_4.49_graphics_i686-pc-linux-gnu l1_1091.30_S5R3
einstein_S5R3_4.49_i686-pc-linux-gnu l1_1091.35_S5R3
einstein_S5R3_4.49_i686-pc-linux-gnu_0 l1_1091.40_S5R3
einstein_S5R3_4.49_i686-pc-linux-gnu_1 l1_1091.45_S5R3
h1_1091.20_S5R3 l1_1091.50_S5R3
h1_1091.25_S5R3 l1_1091.55_S5R3
h1_1091.30_S5R3 l1_1091.60_S5R3
h1_1091.35_S5R3 skygrid_1100Hz_S5R3.dat
h1_1091.40_S5R3 sun_05_09

Well this doesn't show the owner of the files, so you have to enter
sudo ls -l

[edit]or maybe "dir" is aliased to "ls -l" on your system too.[/edit]

cu,
Michael

Matt LO
Matt LO
Joined: 7 Feb 06
Posts: 44
Credit: 386731
RAC: 0

RE: ...in terminal ?

Message 81825 in response to message 81823

Quote:

...in terminal ? right?

perle@Stan:~$ ps -FC boinc
UID PID PPID C SZ RSS PSR STIME TTY TIME CMD
perle@Stan:~$

Okay....then after entering my password 10 different times even tho I am the only user on machine!!
I have to sudo the ls command.


OK if that's the path to Boinc, you installed it from the repositories, which is set up as a service. The service runs under the user boinc. Hope that helps.

Gary Roberts
Gary Roberts
Moderator
Joined: 9 Feb 05
Posts: 5874
Credit: 118253123012
RAC: 24720468

RE: Okay....then after

Message 81826 in response to message 81823

Quote:
Okay....then after entering my password 10 different times even tho I am the only user on machine!!

Actually, you're not! :-).

There are three users (apparently) on your machine - perle, boinc and root - even though the three are just one person. No matter how many times you (as perle) enter your password, you don't have permission to even view some files in (some or all of) the boinc owned directories. If you really wish to keep the users perle and boinc separate, but allow perle to access boinc owned files, you (as root) will need to make perle part of the boinc group and change the group permissions on directories to accommodate the incursion of perle into the boinc kingdom :-).

Since doing this requires a bit of understanding of the subtleties of unix file and directory permissions, you might consider whether or not you really need to keep boinc and perle as separate users. Probably the most simple thing is to drop the boinc user and make everything owned by perle. Then you could wander through the boinc kingdom, browsing and editing files whenever you wanted without the restrictions you are currently experiencing.

Quote:
I have to sudo the ls command.

Because you (perle) don't have permission to view the contents of the boinc owned directory you are trying to look at.

Quote:
perle@Stan:/var/lib/boinc-client/projects/einstein.phys.uwm.edu$ sudo ls -l ./ei*
ls: cannot access ./ei*: No such file or directory

This bit I don't understand. You are doing the 'ls -l' as root and files of the form ei* are obviously there (see the next snippet). So why don't they get listed as shown in the next snippet. All I can think of (if you are really sure you were in the directory as indicated) is that 'ls' is not properly handling the ./ei* for some reason whereas it does appear that it would handle just ei* if you left out the './' which is redundant anyway. While in that einstein.phys.uwm.edu directory, did you try just 'sudo ls -l ei*' by any chance?

Quote:
If i drop the ./ei* i get this
[pre]
perle@Stan:/var/lib/boinc-client/projects/einstein.phys.uwm.edu$ sudo ls
app_info.xml h1_1091.45_S5R3
earth_05_09 h1_1091.50_S5R3
einstein_S5R3_4.38_graphics_i686-pc-linux-gnu h1_1091.55_S5R3
einstein_S5R3_4.38_i686-pc-linux-gnu h1_1091.60_S5R3
einstein_S5R3_4.38_i686-pc-linux-gnu_0 l1_1091.20_S5R3
einstein_S5R3_4.38_i686-pc-linux-gnu_1 l1_1091.25_S5R3
einstein_S5R3_4.49_graphics_i686-pc-linux-gnu l1_1091.30_S5R3
einstein_S5R3_4.49_i686-pc-linux-gnu l1_1091.35_S5R3
einstein_S5R3_4.49_i686-pc-linux-gnu_0 l1_1091.40_S5R3
einstein_S5R3_4.49_i686-pc-linux-gnu_1 l1_1091.45_S5R3
h1_1091.20_S5R3 l1_1091.50_S5R3
h1_1091.25_S5R3 l1_1091.55_S5R3
h1_1091.30_S5R3 l1_1091.60_S5R3
h1_1091.35_S5R3 skygrid_1100Hz_S5R3.dat
h1_1091.40_S5R3 sun_05_09
[/pre]

Which is exactly as expected (excuse the editing to show the filenames more easily). Just do 'sudo ls -l' and you will see the ownership and permissions of all the files. Then do the same in the directory above this one (the projects directory) to see the ownership and permissions of the einstein.phys.uwm.edu directory itself.

Cheers,
Gary.

Perle
Perle
Joined: 22 Jan 05
Posts: 47
Credit: 2167518760
RAC: 1635185

Simple info: This system was

Simple info:
This system was a straight install from the image.
This system is only used for BOINC.
I (perle) am the only user.

I tried the ps -Fp......it errors on the p or just returns to prompt.

perle@Stan:/var/lib/boinc-client/projects$ sudo ps -F
UID PID PPID C SZ RSS PSR STIME TTY TIME CMD
root 19935 17076 0 3765 1008 1 07:25 pts/0 00:00:00 ps -F
perle@Stan:/var/lib/boinc-client/projects$ sudo ps -Fp 19935
UID PID PPID C SZ RSS PSR STIME TTY TIME CMD
perle@Stan:/var/lib/boinc-client/projects$ sudo ps -F 19935
UID PID PPID C SZ RSS PSR STIME TTY STAT TIME CMD

so i tried the sudo ls -l
perle@Stan:/var/lib/boinc-client/projects/einstein.phys.uwm.edu$ sudo ls -l
total 111032
-rwx------ 1 root root 5404 2008-06-07 08:58 app_info.xml
-rw-r--r-- 1 boinc boinc 2745667 2008-06-03 18:07 earth_05_09
-rwxr-xr-x 1 boinc boinc 4170805 2008-06-08 06:42 einstein_S5R3_4.38_graphics_i686-pc-linux-gnu
-rwxr-xr-x 1 boinc boinc 449913 2008-06-07 12:04 einstein_S5R3_4.38_i686-pc-linux-gnu
-rwxr-xr-x 1 boinc boinc 7810798 2008-06-08 06:41 einstein_S5R3_4.38_i686-pc-linux-gnu_0
-rwxr-xr-x 1 boinc boinc 7447098 2008-06-08 06:42 einstein_S5R3_4.38_i686-pc-linux-gnu_1
-rwx--x--x 1 root root 3867487 2008-06-07 08:58 einstein_S5R3_4.49_graphics_i686-pc-linux-gnu
-rwx--x--x 1 root root 449913 2008-06-07 08:58 einstein_S5R3_4.49_i686-pc-linux-gnu
-rwx--x--x 1 root root 4849253 2008-06-07 08:58 einstein_S5R3_4.49_i686-pc-linux-gnu_0
-rwx--x--x 1 root root 4867308 2008-06-07 08:58 einstein_S5R3_4.49_i686-pc-linux-gnu_1
-rw-r--r-- 1 boinc boinc 3539016 2008-06-03 18:14 h1_1091.20_S5R3
----------------> i edited out the other 20 entries for brevity<--------
-rw-r--r-- 1 boinc boinc 3234816 2008-06-09 01:54 l1_1091.70_S5R3
-rw-r--r-- 1 boinc boinc 1996666 2008-06-07 04:33 skygrid_1100Hz_S5R3.dat
-rw-r--r-- 1 boinc boinc 274843 2008-06-03 18:07 sun_05_09

and in the directory above

perle@Stan:/var/lib/boinc-client/projects$ sudo ls -l
total 12
drwxrwx--x 2 boinc boinc 4096 2008-06-09 04:49 einstein.phys.uwm.edu
drwxrwx--x 2 boinc boinc 4096 2008-05-27 03:30 lhcathome.cern.ch_lhcathome
drwxrwx--x 2 boinc boinc 4096 2008-06-01 03:58 orbit.psi.edu_oah

M. Schmitt
M. Schmitt
Joined: 27 Jun 05
Posts: 478
Credit: 15872262
RAC: 0

RE: -rwx------ 1 root root

Message 81828 in response to message 81827

Quote:
-rwx------ 1 root root 5404 2008-06-07 08:58 app_info.xml

This is your problem. Nobody else beside root is allowed to read this file!

sudo chown boinc:boinc app_info.xml

should solve your problems. Enter the command in the folder, where the file exists.
For further information try "man xyz"(without the "), where xyz is the command, where you want to know somthing about, e.g. command options.

If you are interested about Linux, best thing is to buy a good book, it's worth it. :-)

cu,
Michael

[edit]The 4 files that belong to the 4.49 app are owned by root, so you must have installed them as root. But the x-flag(executable) is set for the group(root in this case) and for 'world' too. Because word means everybody, boinc is allowed to execute them too. So this will not lead to problems, but this isn't the best way.

If you are looking for an easy way to handle with rights and ownership, you might install the midnight commander(mc), which imho is a big help for beginners.[/edit]

Jos van Wolput
Jos van Wolput
Joined: 11 Feb 05
Posts: 47
Credit: 800840
RAC: 0

RE: I (perle) am the only

Message 81829 in response to message 81827

Quote:


I (perle) am the only user.

-rwxr-xr-x 1 boinc boinc 7447098 2008-06-08 06:42 einstein_S5R3_4.38_i686-pc-linux-gnu_1
-rwx--x--x 1 root root 4867308 2008-06-07 08:58 einstein_S5R3_4.49_i686-pc-linux-gnu_1


Now it's clear why you don't run app. 4.49! Wrong permissions!
You and root are not the user, it's boinc. That's the reason your system
always runs 4.38.
To run 4.49 the permissions should be set to boinc, not to root nor perle.
If you prefer to be the yourself the owner, change all the permissions to
owner perle.

Good luck!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.