LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-03-2003, 08:15 PM   #1
Imyrryr
Member
 
Registered: Aug 2003
Location: 3rd electron on the left getting mugged by the nutrinos at Quarks
Distribution: Pop_OS
Posts: 140

Rep: Reputation: 17
Question I/O permissions


When trying to run either seejpeg Screenshot.jpg and/or links -g I receive the following error: svgalib: Cannot get I/O permission as a regular user.

I understand this is a permission to the file that controls 'svgalib' but I'm not real sure which file I need to adjust permissions.

I've tried changing /dev/video* to chmod 666 this didn't help much either, same error

Any assistance would be greatly appreciated as well as passed on to those that may be having the same problem.
 
Old 12-03-2003, 08:22 PM   #2
teval
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Gentoo
Posts: 720

Rep: Reputation: 30
strace is your friend.
probably with -f option. It'll give you pages of output, just look twoards the end, and see what fails. It'll show you what syscall the program is making (you'll see the file it's trying to get I/O rights on)
I usually do..

strace -f <program> &> programdump

Then just open programdump in your favourite editor, and look twoards the end.
 
Old 12-03-2003, 09:06 PM   #3
Imyrryr
Member
 
Registered: Aug 2003
Location: 3rd electron on the left getting mugged by the nutrinos at Quarks
Distribution: Pop_OS
Posts: 140

Original Poster
Rep: Reputation: 17
Well here is what I got:
tail c10 svga_io_dump


munmap(0x40016000, 4096) = 0
open("/home/gelnven/.svgalibrc", O_RDONLY) = -1 ENOENT (No such file or directory)
ioperm(0x3b4, 0x2c, 0x1) = -1 EPERM (Operation not permitted)
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000
write(1, "svgalib: Cannot get I/O permissi"..., 37svgalib: Cannot get I/O permissions.
) = 37
munmap(0x40016000, 4096) = 0
exit_group(1) = ?


okay, not exactly sure what I'm looking for but I'm guessing it's either the line that says no such file or the one that says operation not permitted? But from what I understand (although I could be wrong) if the file /etc/vga/vgalib.config exists there is not a requirement for the .svgalibrc.
 
Old 12-03-2003, 10:04 PM   #4
teval
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Gentoo
Posts: 720

Rep: Reputation: 30
Create it anyway, and just see what happens.
Just..
touch /home/gelnven/.svgalibrc
 
Old 05-16-2004, 07:21 AM   #5
Imyrryr
Member
 
Registered: Aug 2003
Location: 3rd electron on the left getting mugged by the nutrinos at Quarks
Distribution: Pop_OS
Posts: 140

Original Poster
Rep: Reputation: 17
Whoa! completely forgot about this post but I found the fix for it: you have to chmod u+s seejpeg
 
Old 08-03-2004, 05:39 PM   #6
rignes
Member
 
Registered: Mar 2003
Location: USA
Distribution: Slackware-current
Posts: 155

Rep: Reputation: 30
Security Risk

That works but I'd call that a security risk. Espcially if it's done with links for using graphics mode.

I'm trying to find out if I can manage to use links -g and seejpeg as a non-root user without having to suid root.

Brian
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
file permissions OK, but command permissions? stabu Linux - General 2 10-05-2005 12:00 PM
permission ... permissions .... permissions alaios Linux - General 1 05-31-2005 04:16 AM
Permissions jymmi Linux - Newbie 3 04-14-2005 11:43 PM
Permissions help reddog64 Linux - Newbie 1 04-22-2004 05:23 PM
getting a directory's permissions and creating a new one with the same permissions newbie1000101 Programming 1 04-10-2004 12:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:27 AM.

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