An error occurred while accessing 'NEW VOLUME', the system responded: org.freedesktop.Hal.Device.PermissionDeniedByPolicy: org.freedesktop.hal.storage.mount-fixed auth_admin_keep_always <--(action, result)
Here, the NEW VOLUME may be substituted with partition name like volume (vfat) or volume (ntfs)
How could I solve the error? As I am no geek, please explain step by step.
regards,
Sebin
http://www.happyassassin.net/2009/01/05/policykit-and-kde-navit-and-more/
This link should help you . I myself am not able to replicate the issue ( I am
using KDE 4.2 on Arch Linux ). Do get back.
Regards,
Ashik S
I don't think ubuntu use policykit by default. I can reprodce the
error. I normally mount it in the command line. The problem is with
the default security. Only users in the disk group are given access to
the drive apart from root.
sudo ntfs-3g -o uid=sebin /dev/sda1 /windows/c
from command line. Then it will work in dolphin.
OR [not recommended, but no commands involved, single step]
If you don't want to use commandline, run (Alt+F2)
sudo dolphin
Click on the partitions. Thats all !!! (Beware you will have to do
this every time, and be warned every action you take will be as root,
you can delete the entire filesystem with delete key - no turning
back).
(If you are OK with this solution, this is all you have to do, skip
everything below)
_________________________________________________________________
But if you are more adventurous or want to learn how I would do it
(also for more control freaks out there, who wants to tweak the last
option to the correct value), follow on, [Recommended, lots of steps
involved]
The root cause is ntfs is much more secure than vfat and on top of
that it is covered with many patents making development of a Free
Sofware driver difficult. But we have drivers now, but not integrated
with the kernel (the driver in the linux kernel can only read ntfs
last time I checked), it uses FUSE.
Install ntfs-3g from synaptic then
or sudo aptitude install ntfs-3g
[I assume the username is sebin, otherwise change it, if you want to
give access to more than one user, create a group (say ntfs), add all
users which you want to give access to ntfs partition, use
gid=groupname instead of uid=username in the commands]
1. Navigate to root folder
right click -> create folder
properties -> permissions
make owner and group as sebin (or group as ntfs)
Create as many folders you want depending on the number of partitions
you have. Give the same permissions to all directories.
sudo mkdir -p /windows/c
sudo chown -R sebin.sebin /windows
2. Add the patition to file system table
sudo gedit /etc/fstab
Copy and paste the following lines (change device name, shown in the
error message)
/dev/sda1 /windows ntfs-3g defaults,users,uid=sebin
0 0
3. Add sebin to group disk (since only root and users in group disk
have access to ntfs partitions)
(use command line or alt+F2)
sudo usermod -aG disk sebin
(don't know how to do it in gui, the disk group is mysteriously
abscent in the groups list)
sudo users-admin
select groups (see if disk is there)
4. Permit ONLY sebin to run ntfs-3g as root
sudo dolphin
browse to /usr/bin
change group to sebin or ntfs for ntfs-3g (from properties-> permissions)
sudo chown root.sebin $(which ntfs-3g)
chose forbidden for others. In advaced permissions, select set UID root.
sudo chmod 4750 $(which ntfs-3g)
Open dolphin normally and click on the partitions (you may not see it
after reboot, it would be mounted automatically).
If you don't want to automatically mount use
/dev/sda1 /windows ntfs-3g
defaults,users,noauto,uid=sebin 0 0
in /etc/fstab
Ask if any step is not clear.
--
പ്രവീണ് അരിമ്പ്രത്തൊടിയില്
<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call, if you are unable to speak?
(as seen on /.)
Join The DRM Elimination Crew Now!
http://fci.wikia.com/wiki/Anti-DRM-Campaign
sudo aptitude install ntfs-3g
[I assume the username is sebin,
otherwise change it, if you want to
give access to more than one user, create a group (say ntfs), add all
users which you want to give access to ntfs partition, use
gid=groupname instead of uid=username in the commands]
1. Navigate to root folder
right click -> create folder
properties -> permissions
make owner and group as sebin (or group as ntfs)
Create as many folders you want depending on the number of partitions
you have. Give the same permissions to all directories.
sudo mkdir -p /windows/c
sudo chown -R sebin.sebin /windows
Sebin, you can give to the directories you like :)
I'm pretty sure Ashik wanted to say that you can use whatever directory names you like.. he he..
2. Add the patition to file system table
sudo gedit /etc/fstab
Copy and paste the following lines (change device name, shown in the
error message)
/dev/sda1 /windows ntfs-3g defaults,users,uid=sebin
0 0
3. Add sebin to group disk (since only root and users in group disk
have access to ntfs partitions)
(use command line or alt+F2)
sudo usermod -aG disk sebin
(don't know how to do it in gui, the disk group is mysteriously
abscent in the groups list)
sudo users-admin
select groups (see if disk is there)
4. Permit ONLY sebin to run ntfs-3g as root
sudo dolphin
browse to /usr/bin
change group to sebin or ntfs for ntfs-3g (from properties-> permissions)
sudo chown root.sebin $(which ntfs-3g)
chose forbidden for others. In advaced permissions, select set UID root.
sudo chmod 4750 $(which ntfs-3g)
Open dolphin normally and click on the partitions (you may not see it
after reboot, it would be mounted automatically).

If you don't want to automatically mount use
/dev/sda1 /windows ntfs-3g
defaults,users,noauto,uid=sebin 0 0
in /etc/fstab
Ask if any step is not clear.
--
പ്രവീണ് അരിമ്പ്രത്തൊടിയില്
<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call, if you are unable to speak?
(as seen on /.)
Join The DRM Elimination Crew Now!
http://fci.wikia.com/wiki/Anti-DRM-Campaign
yes
>> 3. Add sebin to group disk (since only root and users in group disk
>> have access to ntfs partitions)
>> (use command line or alt+F2)
>>
>> sudo usermod -aG disk sebin
>
> I gave this command in terminal. The log is attached here as disk.txt
>
>>
>> (don't know how to do it in gui, the disk group is mysteriously
>> abscent in the groups list)
>> sudo users-admin
>> select groups (see if disk is there)
>
> Disk is not here.
ls -l /dev/sda1
brw-rw---- 1 root disk 8, 1 2009-02-01 21:09 /dev/sda1
See what group it belongs to. In my system (debian sid) it is disk,
you may have a different group.
>> 4. Permit ONLY sebin to run ntfs-3g as root
>>
>> sudo dolphin
>
> When I give this command, the result is like this>
>
> sebin@sebin-laptop:/root$ sudo dolphin
> sudo: dolphin: command not found
That is strange? How did you install kde? (is it official packages?)
what is the output of the following commands (output from my system is
shown below)
which dolphin
/opt/kde/bin/dolphin
whereis dolphin
dolphin: /usr/bin/dolphin /opt/kde/bin/dolphin
>> browse to /usr/bin
>>
>> change group to sebin or ntfs for ntfs-3g (from properties-> permissions)
>
> In GUI, I don't see any group.
see the attachment. There group is j4v4m4n. Change that to sebin.
>> sudo chown root.sebin $(which ntfs-3g)
>>
>> chose forbidden for others. In advaced permissions, select set UID root.
>> sudo chmod 4750 $(which ntfs-3g)
>
> Here are the results for these commands>
>
> sebin@sebin-laptop:/root$ cd /usr/bin
> sebin@sebin-laptop:/usr/bin$ sudo chown root.sebin $(which ntfs-3g)
> sebin@sebin-laptop:/usr/bin$ sudo chmode 4750 $(which ntfs-3g)
> sudo: chmode: command not found
> sebin@sebin-laptop:/usr/bin$
typo :-( extra 'e'
2009/2/1 Sebin Jacob <sebin...@gmail.com>
> Should I append what you have given to this?yes
>> 3. Add sebin to group disk (since only root and users in group disk
>> have access to ntfs partitions)
>> (use command line or alt+F2)
>>
>> sudo usermod -aG disk sebin
>
> I gave this command in terminal. The log is attached here as disk.txt
>
>>
>> (don't know how to do it in gui, the disk group is mysteriously
>> abscent in the groups list)
>> sudo users-admin
>> select groups (see if disk is there)
ls -l /dev/sda1
>
> Disk is not here.
brw-rw---- 1 root disk 8, 1 2009-02-01 21:09 /dev/sda1
See what group it belongs to. In my system (debian sid) it is disk,
you may have a different group.
>> 4. Permit ONLY sebin to run ntfs-3g as root
>>
>> sudo dolphin
>
> When I give this command, the result is like this>
>
> sebin@sebin-laptop:/root$ sudo dolphin
> sudo: dolphin: command not found
That is strange? How did you install kde? (is it official packages?)
what is the output of the following commands (output from my system is
shown below)
which dolphin
/opt/kde/bin/dolphin
whereis dolphin
dolphin: /usr/bin/dolphin /opt/kde/bin/dolphin
>> browse to /usr/bin
>>
>> change group to sebin or ntfs for ntfs-3g (from properties-> permissions)
>
see the attachment. There group is j4v4m4n. Change that to sebin.
> In GUI, I don't see any group.
typo :-( extra 'e'
>> sudo chown root.sebin $(which ntfs-3g)
>>
>> chose forbidden for others. In advaced permissions, select set UID root.
>> sudo chmod 4750 $(which ntfs-3g)
>
> Here are the results for these commands>
>
> sebin@sebin-laptop:/root$ cd /usr/bin
> sebin@sebin-laptop:/usr/bin$ sudo chown root.sebin $(which ntfs-3g)
> sebin@sebin-laptop:/usr/bin$ sudo chmode 4750 $(which ntfs-3g)
> sudo: chmode: command not found
> sebin@sebin-laptop:/usr/bin$
/dev/<something> is the device name, "New Volume" is the label that
dolphin gives.
please give the output of
sudo fdisk -l
Give me the contents of /etc/fstab (the last lines you added)
It should look something like
/dev/sda1 /dir0 ntfs-3g defaults,users,uid=sebin
0 0
/dev/sda2 /dir1 ntfs-3g defaults,users,uid=sebin
0 0
/dev/sda5 /dir2 ntfs-3g defaults,users,uid=sebin
0 0
/dev/sda6 /dir3 ntfs-3g defaults,users,uid=sebin
0 0
/dev/sda7 /dir4 ntfs-3g defaults,users,uid=sebin
0 0
If you don't want all files in '/'
you can make directories in /windows
sudo mkdir -p /windows/dir0
sudo mkdir -p /windows/dir1
...
and giving /windows/dir0 instead of /dir0 in /etc/fstab.
> Another thing I want to confirm is that, from where should I give
> instructions in command line, ie, where should I stand?
It does not matter.
> you have said to go to root. this is how i did it>
>
> sebin@sebin-laptop:~$ cd /root
> sebin@sebin-laptop:/root$ ls
> Desktop
> sebin@sebin-laptop:/root$
Not required. You can give commands from any location.
> Now when I check it in dolhin, I found that, I am standing really at
> /root/root and not at /root. That is why, only desktop is listed. So how to
> go to /root?
Not needed. '/' is also called root, so it might be confusing. '/' is
what is normally called as root. /root is the home directory of the
root user.
> I tried typing sudo root:
>
> sebin@sebin-laptop:/root$ sudo root
> [sudo] password for sebin:
> sudo: root: command not found
> sebin@sebin-laptop:/root$
>
> I tried with su root:
>
> sebin@sebin-laptop:/root$ su root
> Password:
> su: Authentication failure
> sebin@sebin-laptop:/root$
command to gain root access is
sudo su -
> The password for administrator and user are the same. I haven't changed it.
> But still, it happens so. Don't know whether I gave the correct command or
> not. As I am just exploring it without much knowledge in command line,
> please excuse me for any such mistakes and correct me.
No problem, every one starts as a newbie.
> While I checked with the screenshot you have provided, the file ntfs-3g is @
> /usr/bin or to be specific, its in root>usr>bin. Am I correct?
Yes.
> But in my system, I haven't found it in /usr/bin. Instead I found it @ /bin
> or in dolphin, root>bin
OK, that is why we gave $(which ntfs-3g)
it will find out the location and use that. (for any command you can give
which <command name>
to find the location of the executable file.
> So my steps in installing ntfs-3g itself may have been flawed.
I don't think, ubuntu may be following a different approach.
> I repeated the command today also. no log appears.
> A window opened, screenshot of which is attached herewith. What should I do
> with this?
Click on manage groups. Look for the group disk (you may not see
there, I don't see either - but most of the groups in the system is
shown there)
The same thing we did with
sudo usermod -aG disk sebin
(we added user 'sebin' to group 'disk' - whereby granting write access
to the partitions)
>> > Disk is not here.
>>
>> ls -l /dev/sda1
>> brw-rw---- 1 root disk 8, 1 2009-02-01 21:09 /dev/sda1
fist character is type of file, in our case 'b' means a block file or
a partition.
'-' means normal file, 'd' is directory...
rw- means read and write permissions and no execution permission.
First 3 is for the owner (in this case root), the second is for group
(rw- for members of group 'disk', now sebin is a member and he gets
write access to the device/partition).
>> See what group it belongs to. In my system (debian sid) it is disk,
>> you may have a different group.
> Here is the result:
>
> sebin@sebin-laptop:/root$ ls -l /dev/sda1
> brw-rw---- 1 root disk 8, 1 2009-02-03 16:36 /dev/sda1
>
> how to check, which group is it?
'root disk' - means owner is root and group is disk.
>> > sebin@sebin-laptop:/root$ sudo dolphin
>> > sudo: dolphin: command not found
>
> This error is repeating.
because KDE is installed in a different place than normally found.
try sudo $(which dolphin)
>> That is strange? How did you install kde? (is it official packages?)
>
> It is official packages. I had kde 4.1 installed in my system. I upgraded it
> to 4.2 using instuctions found over net.
>
>>
>>
>> what is the output of the following commands (output from my system is
>> shown below)
>>
>> which dolphin
>> /opt/kde/bin/dolphin
> sebin@sebin-laptop:/root$ which dolphin
> /opt/kde-nightly/bin/dolphin
sudo does not look in /opt/kde-nightly/bin for dolphin, it looks in
/usr/bin as is the case normally. I think ubuntu did this to
accommodate kde 3 and kde 4 side by side.
So you can give the full path to sudo
sudo /opt/kde-nightly/bin/dolphin
or as I said earlier
sudo $(which dolphin)
in that case you shell (bash) first finds dolphin and give full path to sudo.
>> whereis dolphin
>> dolphin: /usr/bin/dolphin /opt/kde/bin/dolphin
>
> sebin@sebin-laptop:/root$ whereis dolphin
> dolphin: /opt/kde-nightly/bin/dolphin
> sebin@sebin-laptop:/root$ cd /usr/bin
> sebin@sebin-laptop:/usr/bin$
>
> Yea, I am at it.
>>
>> >> change group to sebin or ntfs for ntfs-3g (from properties->
>> >> permissions)
>> >
>
> I dont know how to find it.
>
> Now nothing happens:
>
> sebin@sebin-laptop:/usr/bin$ sudo chown root.sebin $(which ntfs-3g)
> sebin@sebin-laptop:/usr/bin$ sudo chmod 4750 $(which ntfs-3g)
> sebin@sebin-laptop:/usr/bin$
That means the command was successfull. You should be all set now.
> Sorry, If I am disturbing you too much. I would like to study it as well as
> to be able to use it.
No problem at all. I hope we will be able to do it more easily in
future versions (ntfs support is a very late comer in the scene thanks
to MS patents). Since we did not have good write support until
recently with ntfs-3g, by default ntfs support is disabled in most
distros to prevent data corruption.
Just replace "ntfs-3g" in the fstab line correspnding to the above partitions
with "vfat"
Regards,
Ashik S
Navigate to the folder you want to add to side panel. Then drag and
drop that folder to side panel.
> I do not know
> from where to find the network manager.
You can get gnome network admin application by running sudo network-admin
command
-Santhosh
Navigate to the folder you want to add to side panel. Then drag and
drop that folder to side panel.
You can get gnome network admin application by running sudo network-admin
> I do not know
> from where to find the network manager.
command
-Santhosh
I'm using wicd (wicd.sourceforge.net). There is a plasma applet front
end for network manager being developed. There is a debian package,
don't know the status in ubuntu. I have not used it though.
> Thanks for the tips, Praveen A and Ashik S.
You are welcome, its a pleasure.
I'm using wicd (wicd.sourceforge.net). There is a plasma applet front
end for network manager being developed. There is a debian package,
don't know the status in ubuntu. I have not used it though.
wicd is a complete substitute for network manager. It works in gnome,
kde and everywhere else. I simply love it. If you don't like you can
go back by installing network-manager later.
btw the plasma applet is in playground-base module, which I'm trying
to build right now.
deb http://apt.wicd.net intrepid extras
(It is written hardy instead of intrepid in the instructions)
Then I gave the following commands in a terminal:are you sure you gave the two commands in the same line? That was a
shortcut to simplify two commands and not to have the file lying
around. It takes the output from first command and pass it to the
second command if given in a single line.
try this.
wget http://apt.wicd.net/wicd.gpg
this will download wicd.gpg to current directory.
then sudo apt-key add wicd.gpg
now try
aptitude update
> The results I got was this:
>
> W: GPG error: http://apt.wicd.net intrepid Release: The following signatures
> couldn't be verified because the public key is not available: NO_PUBKEY
> FEC820F4B8C0755A
>
> The same had occured before while trying to update open office to its newest
> verison by adding deb http://ppa.launchpad.net/openoffice-pkgs/ubuntu
> intrepid main to the third party depositories index.
>
> W: GPG error: http://ppa.launchpad.net intrepid Release: The following
> signatures couldn't be verified because the public key is not available:
> NO_PUBKEY 60D11217247D1CFF
>
> So in both the cases, the system is not able to access the GPG keys. How
> could this be done?
pravi@parimbrath:/tmp$ gpg --recv-key 0x60D11217247D1CFF
gpg: requesting key 247D1CFF from hkp server subkeys.pgp.net
gpg: key 247D1CFF: public key "Launchpad PPA for OpenOffice.org
Scribblers" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
pravi@parimbrath:/tmp$ gpg --export --armor 0x60D11217247D1CFF | sudo
apt-key add -
OK
gpg keys are used to ensure the authenticity of the packages. You can
ignore those if you trust the source and sure no one is trying
mischief (some repositories does not give signed packages, be careful
with them). But it always good to verify. The next step is the web of
trust, physically verify the identity of the owner and sign their gpg
keys. Its starts with you trust someone, he trust andother ... and you
can trust the chain.
Read more about it
http://en.wikipedia.org/wiki/Web_of_trust
Debian has one of the largest web of trust, with signatures from two
existing debian developers being mandatory for a new debian developer.
are you sure you gave the two commands in the same line? That was a
shortcut to simplify two commands and not to have the file lying
around. It takes the output from first command and pass it to the
second command if given in a single line.
try this.
wget http://apt.wicd.net/wicd.gpg
this will download wicd.gpg to current directory.
then sudo apt-key add wicd.gpg
now try
aptitude update
sebin@sebin-laptop:$ gpg --recv-key 0x60D11217247D1CFF