[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: can any user have the right of root and can lunch Netscape



On Fri, Oct 02, 1998 at 11:03:35PM -0400, Daniel Martin wrote:
> Jim Foltz <aa204@acorn.net> writes:
> 
> > On Sat, Oct 03, 1998 at 09:31:53AM +0800, Chan Min Wai wrote:
> > > Hai,
> > >     I'm asking about that can a user have the rithr of root and can
> > > lunch netscape as well in Xwin..
> > 
> > Any user can start X windows if it is intalled properly. Any user can start
> > netscape if it is intalled properly. Root user is not needed to run X
> > windows or netscape.
> > 
> > Do you have X windows and netscape installed properly?
> 
> I think the question is whether one can run netscape as root.
> Currently, the debian netscape script prevents this (for good reasons, 
> I think).  It's possible to run netscape directly (bypassing debian
> scripts) by doing something like:
> MOZILLA_HOME=/usr/lib/netscape /usr/lib/netscape/netscape
> 
> However, I'd _strongly_ recommend against it.  Much better (if you
> need to run netscape, but you're logged in as root) is to do:
> su -c "xauth add `xauth list $DISPLAY`" dcmwai
> su -c netscape dcmwai
> 
> Instead of "dcmwai" you should use your non-root username.  This runs
> netscape as dcmwai, not as root, but displays it on your screen.
> 
> Another possibility (which is what I do) is to never log in as root,
> but use "su" or "sudo" whenever one needs to do something as root.
> 
> 
> --  
> Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
>

Turns out all he wanted to do was be able to start ppp connection and run X
and netscape as the same user. Previously, he had to be root to start ppp
and then switch to a non-root user and run X and netscape. I suggested he
add his normal user to the dip group with adduser.


-- 
Jim Foltz <aa204@acorn.net>


Reply to: