session applications runing as root when startup

Bug #309386 reported by SoonSoon
6
Affects Status Importance Assigned to Milestone
Ubuntu
Invalid
Undecided
Unassigned

Bug Description

Not sure if this is a bug

but i am wondering , for application that are ran using the auto start function in session, why are they under root than user?

i wrote a simple script file

ls -l /dev/ttyS* > /home/user/Desktop/Session_ttyS_.txt
who > /home/user/Desktop/Session_Who.txt

the owner ship for the file generated is always root in 8.10

I ran the same script in 7.04, the file is own by user.

is there any why to make the application start in User ?

Revision history for this message
SoonSoon (l030010) wrote :
Revision history for this message
Bernhard (b.a.koenig) wrote :

Cannot confirm this, my "autostart sessions" start under my user name.

Revision history for this message
SoonSoon (l030010) wrote :

i got a empty file own by root when i try it on 8.10. is it the same for you?

Revision history for this message
Bernhard (b.a.koenig) wrote :

Don't know what you mean by empty file, I just checked the ownership in the system monitor and everything looks fine on my system.

Revision history for this message
SoonSoon (l030010) wrote :

I try the script again, the result is the same.

the following is the screen shot of the results, the file created are on by root rather than user.

please advice

Revision history for this message
Bernhard (b.a.koenig) wrote :

Can you paste the mod of your session.sh? It should look something like

-rwx------ 1 user user 103 2008-12-19 01:27 session.sh

maybe session.sh is owned by root or is only root-executable (070 instead of 700).

Revision history for this message
SoonSoon (l030010) wrote :

here you go.

-rwxr-xr-x 1 user user 87 2008-12-19 11:42 session.sh

Revision history for this message
SoonSoon (l030010) wrote :

-rwxr-xr-x 1 user user 87 2008-12-19 11:42 session.sh
-rw-r--r-- 1 root root 224 2008-12-19 18:41 S_Serial.txt
-rw-r--r-- 1 root root 0 2008-12-19 18:41 S_who.txt

Revision history for this message
Bernhard (b.a.koenig) wrote :

Hi Soon, I actually tried exactly your setup and I cannot reproduce, the files always owned by user, even if I
chmod 755 session.sh (which gives your mods), and I have 8.10.

Maybe check again your exact command in the "Sessions" by which you start session.sh. Is it a root command?

Revision history for this message
Bernhard (b.a.koenig) wrote :

What happens if you delete the two root files and run

"sh session.sh" ? (Without Autostart, simply type in konsole.)

Are the produced files then root or user?

Revision history for this message
SoonSoon (l030010) wrote :

if i were to that in user, both files are own by user.

what can be wrong.

Revision history for this message
David Tombs (dgtombs) wrote :

Can you attach a screenshot of the properties for the session.sh entry in Sessions Preferences?

Changed in ubuntu:
status: New → Incomplete
Revision history for this message
Pedro Villavicencio (pedro) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to New. Thanks again!.

Changed in ubuntu:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.