LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-18-2006, 05:18 PM   #1
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Rep: Reputation: 55
Question permissions problem with 2.6.18


Hello!
I upgraded from 2.4.33.3 to 2.6.18 kernel. I am using UPS monitoring software, which forces system showtdown at power failure. At the first booting after the kernel upgrade the ups driver could not start, because it had no access to /dev/tts and all devices inside it. So I had to add to /etc/rc.d/rc.local the line: chmod -R 777 /dev/tts.
After that everything was ok until I noticed that at power failure the forced shutdown actually takes place only if I am logged in as root. If I am logged in as an ordinary user, no system shutdown takes place.
The system shutdown takes place after the command "upsmon -c fsd" is issued.

Obviously this is a permissions issue since if I am root and the power fails everything is ok. Besides, with the 2.4 kernel there was no need to "chmod -R 777 /dev/tts". I would be glad if someone tells me if there are permission differences when upgrading to kernel 2.6.18 and if so, to point some literuture to me on that.

I thank you in advance.

Regards,
Martin
 
Old 10-18-2006, 11:57 PM   #2
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
The best solution here would be to run the daemon as root. It's not a good idea to chmod 777 all the tts device files.

For some reason, you have it starting as user, apparantly with your login.

-- Shade
 
Old 10-19-2006, 03:06 AM   #3
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Original Poster
Rep: Reputation: 55
Smile

The problem seems to be solved, although I still do not no how
This morning everything seems to work ok.
Thanks to all who read this thread
 
  


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
Need help with a permissions problem bobbryce Fedora 3 02-08-2005 09:09 AM
old problem ... permissions devit Slackware 3 03-28-2004 04:50 PM
Permissions Problem! codino Linux - Newbie 1 03-13-2004 07:12 PM
Possible permissions problem everythingand2 Linux - Software 1 01-18-2004 12:06 PM
Sendmail problem: sm-client permissions problem d3funct Linux - Software 0 08-12-2003 05:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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