Re: Devices and permissions

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

 



Le mercredi 20 octobre 2004 Ã 18:24 +0200, Alain PORTAL a Ãcrit :
> > Add a warning :
> > - /dev/ttyS? : Permission denied, more information in
> > /usr/share/doc/<pkgname>-pkgversion>/README
> 
> In %description?

Why not.

The application should popup the warning _when_ the application (already
installed) failed to access /dev/ttyS? .
Something like :
	if ((fd = open("/dev/ttyS0", ...)) == EACCES) {
		msg_popup("/dev/ttyS0 : Permission denied, more information in /usr/share/doc/<pkgname>-<pkgversion>/README") ;
	}

With this, you are sure that the README will be read (if needed).

> I was graphically login (kde) as normal user.
> I opened a filemanager as root to open the /etc/security/console.perms file.

Is /etc/security/console.perms still world readable ?

> I made the change and save file.
> I logout.
> I try to login as normal user but it fails, X didn't want to start and here is
> the message I saw (sorry, in french) :
> " Un serveur X est dÃjà lancà sur le visuel :0. Est-ce que je dois essayer un
> autre visuel ? Si vous rÃpondez non, j'essayerai de dÃmarrer le szerveur
> sur :0 une nouvelle fois. (Vous pouvez afficher diffÃrentes consoles en
> utilisant Ctrl+Alt et une touche de fonction Fn, etc)"
> One time I said yes, other time I said no, but I had the same result, unable
> to start X.
> If I try to login as root, I succeed.
> Finally, I had to comment the permissions definitions I added and reboot.
> I had also to delete /tmp/.X?-lock.
> 

I can't really help here. Sorry.

Get the original console.perms :
rpm2cpio pam-...i386.rpm | cpio -iv -m -d ./etc/security/console.perms

Do a diff with your console.perms and check if there is sometime wrong.

Attachment: signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux