Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
pcmanfm problem[solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
pelargos
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jul 2012
Posts: 129

PostPosted: Sun Sep 02, 2012 7:41 pm    Post subject: pcmanfm problem[solved] Reply with quote

Hi everyone i have a problem with pcmanfm. When i connect a usb and it mounts it automatically then pcmanfm is root and not user... Help 8)

Last edited by pelargos on Sat Sep 22, 2012 8:43 am; edited 3 times in total
Back to top
View user's profile Send private message
DanneStrat
n00b
n00b


Joined: 05 Jan 2012
Posts: 70

PostPosted: Mon Sep 03, 2012 12:04 am    Post subject: Re: pcmanfm problem Reply with quote

pelargos wrote:
Hi everyone i have a problem with pcmanfm. When i connect a usb and it mounts it automatically then pcmanfm is root and not user... Help 8)


Sounds like a problem with consolekit. If you're using the desktop profile or any of the desktop subprofiles you most likely have consolekit installed if you haven't disabled the use flag.

Run the following command under your normal user account:

Code:
ck-list-sessions


The output should contain the following line if consolekit is working properly:

active = TRUE

If not, you will need to rebuild your kernel with the following options enabled:

General setup --->
[*] Auditing support
[*] Enable system-call auditing support

Also make sure consolekit and dbus are in the default runlevel:

Code:
# rc-update add dbus default

Code:
# rc-update add consolekit default


After a reboot you should be able to automount devices under a normal user account.

Cheers! :)
Back to top
View user's profile Send private message
pelargos
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jul 2012
Posts: 129

PostPosted: Mon Sep 03, 2012 12:01 pm    Post subject: Re: pcmanfm problem Reply with quote

DanneStrat wrote:
pelargos wrote:
Hi everyone i have a problem with pcmanfm. When i connect a usb and it mounts it automatically then pcmanfm is root and not user... Help 8)


Sounds like a problem with consolekit. If you're using the desktop profile or any of the desktop subprofiles you most likely have consolekit installed if you haven't disabled the use flag.

Run the following command under your normal user account:

Code:
ck-list-sessions


The output should contain the following line if consolekit is working properly:

active = TRUE

If not, you will need to rebuild your kernel with the following options enabled:

General setup --->
[*] Auditing support
[*] Enable system-call auditing support

Also make sure consolekit and dbus are in the default runlevel:

Code:
# rc-update add dbus default

Code:
# rc-update add consolekit default


After a reboot you should be able to automount devices under a normal user account.

Cheers! :)



It says this but still doesn't work:
Session1:
unix-user = '1000'
realname = '(null)'
seat = 'Seat1'
session-type = ''
active = TRUE
x11-display = ':0.0'
x11-display-device = '/dev/tty7'
display-device = ''
remote-host-name = ''
is-local = TRUE
on-since = '2012-09-03T06:32:49.054804Z'
login-session-id = '8'

I also have the right kernel config.
Back to top
View user's profile Send private message
DanneStrat
n00b
n00b


Joined: 05 Jan 2012
Posts: 70

PostPosted: Mon Sep 03, 2012 4:19 pm    Post subject: Reply with quote

Good thing consolekit works. Could you tell me a little more about your gentoo setup (display manager, window manager, desktop environment etc.)
Back to top
View user's profile Send private message
pelargos
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jul 2012
Posts: 129

PostPosted: Tue Sep 04, 2012 11:48 am    Post subject: Reply with quote

DanneStrat wrote:
Good thing consolekit works. Could you tell me a little more about your gentoo setup (display manager, window manager, desktop environment etc.)


i use xfce and pcmanfm.
Back to top
View user's profile Send private message
DanneStrat
n00b
n00b


Joined: 05 Jan 2012
Posts: 70

PostPosted: Tue Sep 04, 2012 9:45 pm    Post subject: Reply with quote

pelargos,

You will need to make some configuration changes for polkit (formerly policykit) to allow your user to perform udisks actions.

First make sure you have the following options enabled in your kernel and rebuild:

Power management and ACPI options --->
[*] Run-time PM core functionality (must be set in order for the below option to appear)

Device Drivers --->
[*] USB support --->
[*] USB runtime power management (autosuspend) and wakeup
(needed by udisks)

Now we continue with polkit configuration. See "man pklocalauthority" for more info.

We will create a configuration file that allows your chosen user(s)/user groups to perform certain udisks actions (you can choose what actions you want to allow):
(available actions are available in /usr/share/polkit-1/actions/org.freedesktop.udisks.policy.) I will list some example configurations below and you can choose one that suit your needs:

Example 1:
To allow users that are members of the "users" group to perform all available udisks actions you can create the following configuration:

Code:
# nano -w /etc/polkit-1/localauthority/50-local.d/10-udisks-allow-users.pkla


[Udisks allow users in users group]
Identity=unix-group:users
Action=org.freedesktop.udisks.*
ResultAny=yes


Afterwards you can add your user(s) to the "users" group if they aren't already in there:

Code:
# gpasswd -a username users


Or

Example 2:
If you want to allow users foobar1, foobar2 and foobar3 (replace with real usernames) to execute basic actions you could use:

[Udisks allow some user access]
Identity=unix-user:foobar1;unix-user:foobar2;unix-user:foobar3
Action=org.freedesktop.udisks.filesystem-mount;org.freedesktop.udisks.filesystem-mount-system-internal;org.freedesktop.udisks.drive-eject;org.freedesktop.udisks.drive-detach
ResultAny=yes


(ResultAny=yes allows user access without authenticating)

You can also change the configuration to your liking. You could for example use the "wheel" group instead of the "users" group or allow all actions for your user only.

I hope this will help you. Let me know if any problems persist.
Back to top
View user's profile Send private message
pelargos
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jul 2012
Posts: 129

PostPosted: Wed Sep 05, 2012 12:51 pm    Post subject: Reply with quote

DanneStrat wrote:
pelargos,

You will need to make some configuration changes for polkit (formerly policykit) to allow your user to perform udisks actions.

First make sure you have the following options enabled in your kernel and rebuild:

Power management and ACPI options --->
[*] Run-time PM core functionality (must be set in order for the below option to appear)

Device Drivers --->
[*] USB support --->
[*] USB runtime power management (autosuspend) and wakeup
(needed by udisks)

Now we continue with polkit configuration. See "man pklocalauthority" for more info.

We will create a configuration file that allows your chosen user(s)/user groups to perform certain udisks actions (you can choose what actions you want to allow):
(available actions are available in /usr/share/polkit-1/actions/org.freedesktop.udisks.policy.) I will list some example configurations below and you can choose one that suit your needs:

Example 1:
To allow users that are members of the "users" group to perform all available udisks actions you can create the following configuration:

Code:
# nano -w /etc/polkit-1/localauthority/50-local.d/10-udisks-allow-users.pkla


[Udisks allow users in users group]
Identity=unix-group:users
Action=org.freedesktop.udisks.*
ResultAny=yes


Afterwards you can add your user(s) to the "users" group if they aren't already in there:

Code:
# gpasswd -a username users


Or

Example 2:
If you want to allow users foobar1, foobar2 and foobar3 (replace with real usernames) to execute basic actions you could use:

[Udisks allow some user access]
Identity=unix-user:foobar1;unix-user:foobar2;unix-user:foobar3
Action=org.freedesktop.udisks.filesystem-mount;org.freedesktop.udisks.filesystem-mount-system-internal;org.freedesktop.udisks.drive-eject;org.freedesktop.udisks.drive-detach
ResultAny=yes


(ResultAny=yes allows user access without authenticating)

You can also change the configuration to your liking. You could for example use the "wheel" group instead of the "users" group or allow all actions for your user only.

I hope this will help you. Let me know if any problems persist.

All the configs are ok except from this error:

[ Error writing /etc/polkit-1/localauthority/50-local.d/10-udisks-allow-users. ]
Back to top
View user's profile Send private message
DanneStrat
n00b
n00b


Joined: 05 Jan 2012
Posts: 70

PostPosted: Wed Sep 05, 2012 9:22 pm    Post subject: Reply with quote

Quote:
All the configs are ok except from this error:

[ Error writing /etc/polkit-1/localauthority/50-local.d/10-udisks-allow-users. ]


You need to be root to create the file:

Code:
su -


enter root password.

Then:

Code:
nano -w /etc/polkit-1/localauthority/50-local.d/10-udisks-allow-users.pkla


Enter your configurations.

Press ctrl+x to exit and choose to save changes.
Back to top
View user's profile Send private message
pelargos
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jul 2012
Posts: 129

PostPosted: Wed Sep 05, 2012 9:43 pm    Post subject: Reply with quote

DanneStrat wrote:
Quote:
All the configs are ok except from this error:

[ Error writing /etc/polkit-1/localauthority/50-local.d/10-udisks-allow-users. ]


You need to be root to create the file:

Code:
su -


enter root password.

Then:

Code:
nano -w /etc/polkit-1/localauthority/50-local.d/10-udisks-allow-users.pkla


Enter your configurations.

Press ctrl+x to exit and choose to save changes.


but i am as root :?
Back to top
View user's profile Send private message
DanneStrat
n00b
n00b


Joined: 05 Jan 2012
Posts: 70

PostPosted: Wed Sep 05, 2012 10:01 pm    Post subject: Reply with quote

Quote:
All the configs are ok except from this error:

[ Error writing /etc/polkit-1/localauthority/50-local.d/10-udisks-allow-users. ]


Is this the complete error message? There should be an explanation for the error like Permission Denied etc. at the end of the message.

When you've finished your configuration file and want to save it try hitting ctrl+o to write out, hit enter when it asks for filename then exit with ctrl+x. You should be able to create that file as root.
If you still can't create it, either there is some problem with nano or with the directory permissions.

As root, list the directory permissions:

Code:
ls -l /etc/polkit-1/localauthority/


and post the output.
Back to top
View user's profile Send private message
pelargos
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jul 2012
Posts: 129

PostPosted: Thu Sep 06, 2012 6:50 am    Post subject: Reply with quote

DanneStrat wrote:
Quote:
All the configs are ok except from this error:

[ Error writing /etc/polkit-1/localauthority/50-local.d/10-udisks-allow-users. ]


Is this the complete error message? There should be an explanation for the error like Permission Denied etc. at the end of the message.

When you've finished your configuration file and want to save it try hitting ctrl+o to write out, hit enter when it asks for filename then exit with ctrl+x. You should be able to create that file as root.
If you still can't create it, either there is some problem with nano or with the directory permissions.

As root, list the directory permissions:

Code:
ls -l /etc/polkit-1/localauthority/


and post the output.

It shows me this when i type ls -l /etc/polkit-1/localauthority/
ls: cannot access /etc/polkit-1/localauthority/: No such file or directory

Help :/
Back to top
View user's profile Send private message
DanneStrat
n00b
n00b


Joined: 05 Jan 2012
Posts: 70

PostPosted: Thu Sep 06, 2012 9:15 am    Post subject: Reply with quote

Looks like polkit isn't installed since the directory doesn't exist.

Code:
emerge --info


to find out if the "policykit" use flag is set.

If it's not set, either set "policykit" as a global use flag or switch to the desktop profile which has the flag enabled by default:

Code:
# eselect profile list


Code:
# eselect profile set X


with X being the number of the desktop profile.

Update world to enable polkit support:

Code:
# emerge -avuDN world


Now that you have polkit installed, repeat the configuration steps.

Good luck :)
Back to top
View user's profile Send private message
pelargos
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jul 2012
Posts: 129

PostPosted: Thu Sep 06, 2012 1:38 pm    Post subject: Reply with quote

DanneStrat wrote:
Looks like polkit isn't installed since the directory doesn't exist.

Code:
emerge --info


to find out if the "policykit" use flag is set.

If it's not set, either set "policykit" as a global use flag or switch to the desktop profile which has the flag enabled by default:

Code:
# eselect profile list


Code:
# eselect profile set X


with X being the number of the desktop profile.

Update world to enable polkit support:

Code:
# emerge -avuDN world


Now that you have polkit installed, repeat the configuration steps.

Good luck :)


I did everything u said but i still get this error. :/
Back to top
View user's profile Send private message
DanneStrat
n00b
n00b


Joined: 05 Jan 2012
Posts: 70

PostPosted: Thu Sep 06, 2012 2:55 pm    Post subject: Reply with quote

Does the parent directory exist i.e. /etc/polkit-1?

Code:
ls -l /etc/
Back to top
View user's profile Send private message
pelargos
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jul 2012
Posts: 129

PostPosted: Thu Sep 06, 2012 7:14 pm    Post subject: Reply with quote

DanneStrat wrote:
Does the parent directory exist i.e. /etc/polkit-1?

Code:
ls -l /etc/


yes :)
Code:

 # ls -l /etc/
σύνολο 896
drwxr-xr-x 3 root root   4096 Ιούλ 19 10:57 acpi
drwxr-xr-x 2 root root   4096 Ιούλ 29 22:46 adobe
drwxr-xr-x 2 root root   4096 Αύγ  26 09:55 bash
-rw-r--r-- 1 root root    472 Αύγ  30 19:53 blkid.tab
-rw-r--r-- 1 root root    472 Αύγ  30 19:53 blkid.tab.old
drwxr-xr-x 2 root root   4096 Αύγ   7 03:39 bluetooth
drwxr-xr-x 2 root root   4096 Αύγ   6 23:40 bonobo-activation
drwxr-xr-x 3 root root   4096 Ιούν 21 13:47 ca-certificates
-rw-r--r-- 1 root root   6957 Ιούν 21 13:47 ca-certificates.conf
drwxr-xr-x 2 root root   4096 Σεπ   6 11:20 conf.d
drwxr-xr-x 5 root root   4096 Ιούλ 19 16:06 ConsoleKit
drwxr-xr-x 2 root root   4096 Ιούλ 19 17:54 cron.d
drwxr-x--- 2 root root   4096 Ιούλ 20 23:00 cron.daily
-rw-r--r-- 1 root root    220 Ιούλ 19 17:54 cron.deny
drwxr-x--- 2 root root   4096 Ιούλ 19 17:50 cron.hourly
drwxr-x--- 2 root root   4096 Ιούλ 19 17:50 cron.monthly
-rw-r--r-- 1 root root    608 Ιούλ 19 17:54 crontab
drwxr-x--- 2 root root   4096 Ιούλ 19 17:50 cron.weekly
-rw-r--r-- 1 root root   1506 Σεπ   6 11:22 csh.env
drwxr-xr-x 5 root lp     4096 Αύγ  30 19:23 cups
drwxr-xr-x 4 root root   4096 Σεπ   5 10:36 dbus-1
drwxr-xr-x 2 root root   4096 Ιούλ 19 11:03 default
-rw-r--r-- 1 root root    831 Ιούλ 19 17:50 dhcpcd.conf
-rw-r--r-- 1 root root   4670 Αύγ  26 10:59 DIR_COLORS
-rw-r--r-- 1 root root   2041 Αύγ  26 09:25 dispatch-conf.conf
-rw-r--r-- 1 root root    416 Ιούλ 19 13:55 dmtab
-rw-r--r-- 1 root root    138 Ιούν 21 14:57 e2fsck.conf
drwxr-xr-x 2 root root   4096 Αύγ   6 21:17 eclean
-rw-r--r-- 1 root root   1304 Αύγ   6 21:35 eixrc
drwxr-xr-x 7 root root   4096 Σεπ   5 15:05 env.d
-rw-r--r-- 1 root root     97 Ιούν 21 14:59 environment
drwxr-xr-x 3 root root   4096 Ιούλ 20 12:30 eselect
-rw-r--r-- 1 root root   2000 Αύγ  26 09:25 etc-update.conf
-rw-r--r-- 1 root root    399 Απρ   5  2007 filesystems
drwxr-xr-x 4 root root   4096 Ιούλ 19 14:38 fonts
drwxr-xr-x 3 root root   4096 Αύγ   7 00:08 foomatic
-rw-r--r-- 1 root root   1091 Σεπ   4 10:33 fstab
-rw-r--r-- 1 root root    216 Αύγ   4 20:55 fuse.conf
-rw-r--r-- 1 root root   2917 Αύγ  26 09:52 gai.conf
drwxr-xr-x 7 root root   4096 Αύγ   7 03:38 gconf
-rw-r--r-- 1 root root     31 Ιούν 21 10:31 gentoo-release
-rw-r--r-- 1 root root    588 Αύγ   3 11:37 GeoIP.conf
-rw-r--r-- 1 root root    698 Αύγ   7 22:22 ggz.modules
drwxr-xr-x 3 root root   4096 Ιούλ 20 22:45 gimp
drwxr-xr-x 3 root root   4096 Αύγ   7 03:41 gnome-vfs-2.0
-rw-r--r-- 1 root root  10793 Αύγ   6 23:27 gnome-vfs-mime-magic
drwxr-xr-x 2 root root   4096 Ιούν 21 13:49 gpm
-rw-r--r-- 1 root root    750 Σεπ   5 10:25 group
-rw------- 1 root root    750 Σεπ   2 10:50 group-
-r-------- 1 root root    613 Σεπ   5 10:25 gshadow
-rw------- 1 root root    613 Σεπ   2 10:50 gshadow-
drwxr-xr-x 4 root root   4096 Αύγ   6 23:52 gtk-2.0
drwxr-xr-x 2 root root   4096 Αύγ   6 23:57 gtk-3.0
-rw-r--r-- 1 root root    936 Αύγ  26 09:52 host.conf
-rw-r--r-- 1 root root   1061 Απρ   5  2007 hosts
drwxr-xr-x 2 root root   4096 Ιούλ 20 12:30 htdig
drwxr-xr-x 2 root root   4096 Αύγ   7 10:07 ImageMagick
drwxr-xr-x 2 root root   4096 Σεπ   6 11:20 init.d
-rw-r--r-- 1 root root   1894 Ιούν 21 10:32 inittab
-rw-r--r-- 1 root root   1855 Φεβ  14  2010 inputrc
-rw-r--r-- 1 root root     30 Απρ   5  2007 issue
-rw-r--r-- 1 root root    701 Απρ   5  2007 issue.logo
drwxr-xr-x 2 root root   4096 Αύγ  26 15:14 java-config-2
drwxr-xr-x 3 root root   4096 Ιούν 21 10:32 kernel
-r--r----- 1 root root    261 Αύγ   7 03:35 ldap.conf.sudo
-rw-r--r-- 1 root root 177910 Σεπ   6 11:22 ld.so.cache
-rw-r--r-- 1 root root    456 Σεπ   5 11:06 ld.so.conf
drwxr-xr-x 2 root root   4096 Αύγ  26 10:02 ld.so.conf.d
drwxr-xr-x 2 root root   4096 Ιούν 21 15:01 local.d
-rw-r--r-- 1 root root    294 Αύγ  26 12:00 locale2.gen
-rw-r--r-- 1 root root    950 Αύγ  26 12:00 locale.gen
-rw-r--r-- 1 root root   2245 Αύγ  26 12:01 localtime
-rw-r--r-- 1 root root  10447 Ιούν 21 15:06 login.defs
drwxr-xr-x 2 root root   4096 Αύγ  26 09:55 logrotate.d
-rw-r--r-- 1 root root     20 Σεπ   2 10:50 lsb-release
drwxr-xr-x 2 root root   4096 Ιούλ 19 13:55 lvm
-rw-r--r-- 1 root root     33 Ιούλ 19 14:03 machine-id
drwxr-xr-x 2 root root   4096 Ιούλ 19 11:05 mail
-rw-r--r-- 1 root root   2235 Ιούλ 19 11:05 mailcap
-rw-r--r-- 1 root root   1848 Σεπ   6 11:12 make.conf
-rw-r--r-- 1 root root    539 Ιούν 21 10:12 make.conf.catalyst
lrwxrwxrwx 1 root root     40 Αύγ  26 09:25 make.globals -> ../usr/share/portage/config/make.globals
lrwxrwxrwx 1 root root     56 Αύγ   6 16:53 make.profile -> ../usr/portage/profiles/default/linux/amd64/10.0/desktop
-rw-r--r-- 1 root root   4630 Ιούν 21 14:13 man.conf
-rw-r--r-- 1 root root  45100 Ιούν 21 10:19 mime.types
-rw-r--r-- 1 root root    956 Ιούν 21 14:57 mke2fs.conf
drwxr-xr-x 2 root root   4096 Σεπ   5 15:02 modprobe.d
drwxr-xr-x 2 root root   4096 Αύγ   6 23:34 mplayer
drwxr-xr-x 2 root root   4096 Σεπ   6 10:37 mplayer2
-rw-r--r-- 1 root root   1081 Σεπ   6 16:44 mtab
-rw-r--r-- 1 root root   8728 Αύγ  28 11:32 nanorc
-rw-r--r-- 1 root root    231 Οκτ  12  2007 networks
-rw-r--r-- 1 root root   1158 Αύγ  26 09:52 nscd.conf
-rw-r--r-- 1 root root    508 Αύγ  26 09:52 nsswitch.conf
drwxr-xr-x 2 root root   4096 Ιούλ 19 16:32 obex-data-server
drwxr-xr-x 3 root root   4096 Ιούλ 19 22:42 OpenCL
drwxr-xr-x 3 root root   4096 Αύγ   7 03:37 openldap
drwxr-xr-x 2 root root   4096 Σεπ   6 10:25 pam.d
drwxr-xr-x 4 root root   4096 Ιούλ 21 22:47 pango
-rw-r--r-- 1 root root      3 Ιούλ 19 12:21 papersize
-rw-r--r-- 1 root root   1639 Σεπ   2 10:50 passwd
-rw------- 1 root root   1558 Ιούλ 30 12:18 passwd-
drwxr-xr-x 5 root root   4096 Ιούλ 19 14:34 pm
-rw-r--r-- 1 root root    104 Ιούλ 19 17:56 pmount.allow
-rw-r--r-- 1 root root   1867 Ιούλ 19 17:56 pmount.conf
drwxr-xr-x 3 root root   4096 Ιούλ 20 23:06 polkit-1
drwxr-xr-x 5 root root   4096 Αύγ   4 19:49 portage
-rw-r--r-- 1 root root    764 Σεπ   6 11:22 prelink.conf
-rw-r--r-- 1 root root    209 Αύγ   4 20:47 printcap
-rw-r--r-- 1 root root   2218 Ιούλ  3  2011 profile
drwxr-xr-x 2 root root   4096 Αύγ  26 15:14 profile.d
-rw-r--r-- 1 root root   1508 Σεπ   6 11:22 profile.env
-rw-r--r-- 1 root root   6108 Ιούν 20  2009 protocols
drwxr-xr-x 2 root root   4096 Ιούλ 20 00:35 qt4
-rw-r--r-- 1 root root   5055 Αύγ  29 08:33 rc.conf
-rw-r--r-- 1 root root    190 Σεπ   6 16:43 resolv.conf
drwxr-xr-x 2 root root   4096 Αύγ  26 15:14 revdep-rebuild
-rwxr-xr-x 1 root root    263 Ιούν 21 14:47 rmt
-rw-r--r-- 1 root root   1615 Αύγ  26 09:52 rpc
-rw-r--r-- 1 root root    405 Αύγ  26 09:55 rsyncd.conf
drwxr-xr-x 6 root root   4096 Ιούν 21 07:02 runlevels
-rw-r--r-- 1 root root   2441 Ιούν 21 10:28 sandbox.conf
drwxr-xr-x 2 root root   4096 Ιούλ 19 14:38 sandbox.d
drwxr-xr-x 2 root root   4096 Αύγ   6 23:16 sasl2
-rw------- 1 root root    262 Ιούν 21 15:06 securetty
drwxr-xr-x 4 root root   4096 Αύγ  26 15:14 security
-rw-r--r-- 1 root root  36141 Ιούν 26  2009 services
drwxr-xr-x 2 root root   4096 Αύγ  28 11:40 sgml
-rw-r----- 1 root root    767 Σεπ   2 10:50 shadow
-rw------- 1 root root    740 Ιούλ 30 12:18 shadow-
-rw-r--r-- 1 root root    118 Απρ   5  2007 shells
drwxr-xr-x 3 root root   4096 Αύγ  26 09:55 skel
-rw-r--r-- 1 root root   3439 Αύγ   6 17:01 slim.conf
drwxr-xr-x 3 root root   4096 Αύγ   7 04:46 sound
drwxr-xr-x 2 root root   4096 Αύγ   7 03:37 ssh
drwxr-xr-x 5 root root   4096 Ιούν 21 13:47 ssl
drwxr-xr-x 2 root root   4096 Αύγ   6 23:16 ssmtp
-r--r----- 1 root root   2849 Αύγ   7 03:35 sudoers
drwxr-x--- 2 root root   4096 Ιούλ 19 16:52 sudoers.d
-rw-r--r-- 1 root root   1458 Μάι  15  2007 sysctl.conf
drwxr-xr-x 3 root root   4096 Αύγ   6 23:28 syslog-ng
drwxr-xr-x 9 root root   4096 Ιούν 21 04:59 terminfo
-rw-r--r-- 1 root root     14 Αύγ  26 14:47 timezone
drwxr-xr-x 3 root root   4096 Σεπ   5 10:35 udev
drwxr-xr-x 3 root root   4096 Αύγ   6 23:04 unixODBC
drwxr-xr-x 2 root root   4096 Ιούλ 19 16:22 UPower
drwxr-xr-x 2 root root   4096 Ιούλ 19 17:47 wgetpaste.d
-rw-r--r-- 1 root root   4533 Αύγ   6 23:23 wgetrc
drwxr-xr-x 7 root root   4096 Αύγ   6 23:20 X11
drwxr-xr-x 8 root root   4096 Σεπ   4 11:30 xdg
drwxr-xr-x 2 root root   4096 Αύγ  26 15:12 xinetd.d
drwxr-xr-x 2 root root   4096 Αύγ  28 11:40 xml
Back to top
View user's profile Send private message
DanneStrat
n00b
n00b


Joined: 05 Jan 2012
Posts: 70

PostPosted: Thu Sep 06, 2012 8:05 pm    Post subject: Reply with quote

So the parent directory exists but none of the subdirectories?

Also post:

Code:
ls -l /etc/polkit-1/


In my gentoo box it looks like this:

Quote:
$ ls -l /etc/polkit-1/
totalt 12
drwx------ 7 root root 4096 29 aug 14.26 localauthority
drwxr-xr-x 2 root root 4096 29 aug 14.26 localauthority.conf.d
drwxr-xr-x 2 root root 4096 29 aug 14.26 nullbackend.conf.d


Quote:
# ls -l /etc/polkit-1/localauthority/
totalt 20
drwxr-xr-x 2 root root 4096 29 aug 22.01 10-vendor.d
drwxr-xr-x 2 root root 4096 29 aug 14.26 20-org.d
drwxr-xr-x 2 root root 4096 29 aug 14.26 30-site.d
drwxr-xr-x 2 root root 4096 29 aug 14.26 50-local.d
drwxr-xr-x 2 root root 4096 29 aug 14.26 90-mandatory.d


If you're missing these directories, I have no idea why. :)
Back to top
View user's profile Send private message
pelargos
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jul 2012
Posts: 129

PostPosted: Thu Sep 06, 2012 8:13 pm    Post subject: Reply with quote

DanneStrat wrote:
So the parent directory exists but none of the subdirectories?

Also post:

Code:
ls -l /etc/polkit-1/


In my gentoo box it looks like this:

Quote:
$ ls -l /etc/polkit-1/
totalt 12
drwx------ 7 root root 4096 29 aug 14.26 localauthority
drwxr-xr-x 2 root root 4096 29 aug 14.26 localauthority.conf.d
drwxr-xr-x 2 root root 4096 29 aug 14.26 nullbackend.conf.d


Quote:
# ls -l /etc/polkit-1/localauthority/
totalt 20
drwxr-xr-x 2 root root 4096 29 aug 22.01 10-vendor.d
drwxr-xr-x 2 root root 4096 29 aug 14.26 20-org.d
drwxr-xr-x 2 root root 4096 29 aug 14.26 30-site.d
drwxr-xr-x 2 root root 4096 29 aug 14.26 50-local.d
drwxr-xr-x 2 root root 4096 29 aug 14.26 90-mandatory.d


If you're missing these directories, I have no idea why. :)


Results: # ls -l /etc/polkit-1/
total 4
drwx------ 2 polkitd root 4096 Σεπ 6 10:25 rules.d
Back to top
View user's profile Send private message
DanneStrat
n00b
n00b


Joined: 05 Jan 2012
Posts: 70

PostPosted: Thu Sep 06, 2012 9:42 pm    Post subject: Reply with quote

Ok that explains it all. Polkitd is managing your policykit setup (notice how the rules.d directory is owned by user polkitd). You will still be able to accomplish the same thing I described by configuring polkitd but the method seems to be different. If you're willing to wait, I could write a configuration for you. Have a look here for more info: http://www.freedesktop.org/software/polkit/docs/master/polkit.8.html
Back to top
View user's profile Send private message
pelargos
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jul 2012
Posts: 129

PostPosted: Fri Sep 07, 2012 7:45 am    Post subject: Reply with quote

DanneStrat wrote:
Ok that explains it all. Polkitd is managing your policykit setup (notice how the rules.d directory is owned by user polkitd). You will still be able to accomplish the same thing I described by configuring polkitd but the method seems to be different. If you're willing to wait, I could write a configuration for you. Have a look here for more info: http://www.freedesktop.org/software/polkit/docs/master/polkit.8.html


OK but i can't understand what should i do to connect the devices and i don't need to put passwd or root? :?:
Back to top
View user's profile Send private message
pelargos
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jul 2012
Posts: 129

PostPosted: Wed Sep 19, 2012 4:16 pm    Post subject: Reply with quote

pelargos wrote:
DanneStrat wrote:
Ok that explains it all. Polkitd is managing your policykit setup (notice how the rules.d directory is owned by user polkitd). You will still be able to accomplish the same thing I described by configuring polkitd but the method seems to be different. If you're willing to wait, I could write a configuration for you. Have a look here for more info: http://www.freedesktop.org/software/polkit/docs/master/polkit.8.html


OK but i can't understand what should i do to connect the devices and i don't need to put passwd or root? :?:


Nevermind i opened pcmanfm as root went and created the text let's see...
Back to top
View user's profile Send private message
pelargos
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jul 2012
Posts: 129

PostPosted: Thu Sep 20, 2012 2:00 pm    Post subject: Reply with quote

Y it's ok :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum