LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-01-2004, 09:53 AM   #1
heri0n
Member
 
Registered: Oct 2004
Location: Hamilton, Ontario
Distribution: Slackware 10.0
Posts: 48

Rep: Reputation: 15
links -g (svgalib and permissions)


Does anyone know how to run links in graphical mode without setting the setuserid bit? I think it would be quite dangerous running a webbrowser as root...

From `man svgalib`
Quote:
Programs that use svgalib must be setuid root. I don't know how desirable it is to have this changed; direct port access can hardly be done without. Root privileges can now be given up right after initialization. I noticed some unimplemented stuff in the kernel header files that may be useful, although doing all register I/O via the kernel would incur a significant context-switching overhead. An alternative might be to have a pseudo /dev/vga device that yields the required permissions when opened, the device being readable by programs in group vga.
Has anyone figured this out?

If this isn't possible, can anyone recommend another graphical console browser which doesn't require svgalib?
 
Old 12-01-2004, 11:40 AM   #2
geniarse
Member
 
Registered: May 2003
Location: UK
Distribution: Gentoo
Posts: 141

Rep: Reputation: 15
I don't have the suid set on links binary, and graphical mode works absolutely fine (version 2.1_pre15)
 
Old 12-01-2004, 11:45 AM   #3
heri0n
Member
 
Registered: Oct 2004
Location: Hamilton, Ontario
Distribution: Slackware 10.0
Posts: 48

Original Poster
Rep: Reputation: 15
Um that helps me a real lot...

I am also using Links 2.1pre15 and Slackware 10...
 
Old 12-02-2004, 02:38 PM   #4
heri0n
Member
 
Registered: Oct 2004
Location: Hamilton, Ontario
Distribution: Slackware 10.0
Posts: 48

Original Poster
Rep: Reputation: 15
bump
 
Old 01-12-2005, 07:03 PM   #5
tims1979
LQ Newbie
 
Registered: Jan 2004
Location: Reading,PA
Distribution: Linspire 4.5
Posts: 20

Rep: Reputation: 0
Quote:
Originally posted by heri0n
bump
Did you ever get it fixed on yours?

What I did was a

chmod u+s /usr/bin/links

And now it will work as a regular user.
 
Old 06-21-2005, 04:45 AM   #6
geletine
Member
 
Registered: Apr 2005
Distribution: Slackware
Posts: 213
Blog Entries: 2

Rep: Reputation: 30
i ran links -g which can use svgalib, (there are alternatives) using su, on the svgalib webpage, it says once the program is running all privalaged access is disabled, does that mean its safe to run as a user using su?

its possible to get links to work under x, although i type "links -driver x" it won't allow it, perhaps i have to recompile links again with a prefix?

if its safe to use under svgalib, i leave it as that, i'm just a little worried.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SVGAlib ?? mickeyboa Fedora 5 09-10-2005 06:34 PM
links (hard links and soft links..) sachitha Programming 1 08-10-2005 12:10 PM
seejpeg - svgalib cannot get I/O-permissions artificialGekko Slackware 5 03-22-2005 12:16 PM
Svgalib and Svgalib-devel on FC1 Michele Spinolo Fedora 1 11-11-2004 09:56 AM
Soft links permissions Pyroknight Linux - General 4 02-07-2003 08:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration