On 06/25/2014 11:42 AM, Istvan Gabor wrote:
El 25/06/14 11:04, Istvan Gabor escribió:
Hello:
I know that HAL is obsolete but I still use it in openSUSE 12.2 with KDE3.
My question is when hald mounts a removable device, where the user id of the owner comes from? For example if I plug in a flash disk, /var/log/messages reports:
Jun 25 15:36:07 linux hald: mounted /dev/sdc1 on behalf of uid 1002
That is where the uid 1002 comes from, where is it configured?
"Cristian Rodríguez" írta:
uid 1002 is the user id of the system account that is requesting the mount..may be the result of a call to getpwuid() or SCM_CREDENTIALS.
Anton Aylward írta:
In /etc/passwd. It is the uid of the user who performed the mount.
In once sense this still applies. As a 13.1/KDE4 user, when I insert a removable device I get a popup asking me what I want to do. The default and choice of actions is configurable within KDE4. If, for example, I choose to open use the file manager (Konqueror) then the device gets mounted under /run/media/<username>. That location is also configurable :-) It is mounted using my user ID since I'm the one who mounted it.
You might reasonably complain that the entry hal makes in your logs should say the user name and not the uid. Maybe it should say both.
OK, the reason I am asking it that the reported and used user ID is not correct.
I plug in the flash disk as user 1001 logged in at vt7 but HAL still mounts it as user 1002 logged in at vt8. HAL gets and assigns the user ID wrongly and I can not unmount/remove the disk as user 1001. I would like to correct this behavior.
Does that mean that you (as user 1001) cannot access it? Just out of interests, what is the entry in /etc/passwd for 1002 ? -- What is objectionable, what is dangerous about extremists, is not that they are extreme, but that they are intolerant. The evil is not what they say about their cause, but what they say about their opponents. -- JFK -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org