LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-25-2007, 01:19 PM   #1
Fill
Member
 
Registered: Jun 2007
Posts: 96

Rep: Reputation: 16
NeroLinux issue - permission denied


My NeroLinux was up and running untill some days ago.

When I try to start it, I get an error message telling me that I don't have permissions to access /dev/sg1 (which is my usb dvd writr). Actually I checked the permissions on /dev/sg1:

Code:
filipe@BOX4:~$ ls -la /dev/sg1
crw-rw---- 1 root root 21, 1 2007-10-24 22:05 /dev/sg1
So it seems only root can access it.

My main question is:

Can I chmod 666 /dev/sg1, or will it cause a main failure? You see, there's a 'C' before the permissions itself (crw-rw----). What dooes that C mean? Will I corrupt it if I chmod 666 the archive, or there's no difference about that C?


Another thing is that I am unable to run a script in which I could see my NeroLinux key. I opened NeroLinux with root user, to gain fast access to /dev/sg1, but it was asking me the serial number, so I tried to run my keymaker script for nero. Here's the terminal output when I tried it:

Code:
BOX4:/media/Work/Download/Linux/NeroLinux# ./keymaker
bash: ./keymaker: Permission denied
BOX4:/media/Work/Download/Linux/NeroLinux#
I get permission denied to run that script as a root! How is this possible? And YES, I immediatly tried to chmod 777 the script and I still get the permission denied error.

Here's what I get with ls -la keymaker:

Code:
BOX4:/media/Work/Download/Linux/NeroLinux# ls -la keymaker
-rwxrwxrwx 1 filipe filipe 572101 2007-05-25 05:03 keymaker
BOX4:/media/Work/Download/Linux/NeroLinux#
See? It's accessible and writable and everything, so what is going on?

Please answer these questions...

Thanks in advance and good evening
 
Old 10-25-2007, 02:53 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"Can I chmod 666 /dev/sg1, or will it cause a main failure? You see, there's a 'C' before the permissions itself (crw-rw----). What dooes that C mean? Will I corrupt it if I chmod 666 the archive, or there's no difference about that C?"

The c means that /dev/sg1 is a character device. chmod 666 will not affect the c character designation.


"I get permission denied to run that script as a root! How is this possible? And YES, I immediatly tried to chmod 777 the script and I still get the permission denied error."

Check the permissions of the directory where keymaker is located.

----------------
Steve Stites
 
Old 10-25-2007, 03:58 PM   #3
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
Quote:
I opened NeroLinux with root user
By that do you mean that you logged in as root, started X and then started Nero? Or did you log in as a normal user, su'ed to root from an xterm and typed the command to launch nero?

About the permissions for /dev/sg1 it looks like a detection issue. That happened to my usb floppy once. Have you upgraded anything recently that might affect ide or scsi device detection? udev, kernel or the entire distro? One idea that comes to mind is to edit your existing udev rules and add SUBSYSTEM=="block" after BUS=="scsi" in the rule to specify it as a block device. Just make sure you edit the correct line(s).
 
Old 10-25-2007, 04:32 PM   #4
Fill
Member
 
Registered: Jun 2007
Posts: 96

Original Poster
Rep: Reputation: 16
nope, the dvd writer is now working, it resolved by chmod :P

When I said I have started Nero with root, I mean I opened a terminal, su'ed and then typed 'nero' to open it as a root.

I never login as a root in X, etc... I only use terminal for root operations, the system itself does not allow me to login graphicly as a root.

Thanks for your answers.

P.S.: I am still with the permission denied problem when trying to execute the script
 
Old 10-25-2007, 04:35 PM   #5
Fill
Member
 
Registered: Jun 2007
Posts: 96

Original Poster
Rep: Reputation: 16
Wow, I copied the keymaker to my home directory and tried to execute it from my home directory, and it worked. Probably a directory permissions issue, but I gotta go now, later I'll check it.

Thanks for your help!

See ya
 
  


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
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 04:50 AM
'permission denied" inspite of right permission flags on network drive anirudhvij Linux - Enterprise 8 05-22-2007 05:57 AM
permission denied using rsh (security not an issue) Singist Linux - Networking 1 04-04-2006 02:22 PM
Permission Denied Issue (concerning IMAP) BtySgtMajor Linux - Newbie 2 01-10-2006 03:19 PM
Permission denied tonyevansau Linux - General 3 10-28-2005 07:57 PM

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

All times are GMT -5. The time now is 05: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