Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have Ubuntu and Windows Vista installed on the same disk, different partitions.

I can access the Windows data, but each (first) time I access the NTFS partition, the system asks me for root password.

Can I somehow allow my user to mount/access those partitions automatically?

share|improve this question
1  
Can you provide an example of your /etc/fstab? This may be as simple as providing the "user" option in your NTFS entry. –  Scaine Jan 1 '11 at 11:20

1 Answer 1

up vote 8 down vote accepted
  • If you feel that you dont want to enter password on mounting and unmounting then one way is to edit sudoers file.

    sudo visudo

  • And you should add the following two lines at the end of your file.

    %username ALL=(ALL)NOPASSWD:/bin/mount
    %username ALL=(ALL)NOPASSWD:/bin/umount

    alt text

  • If you want to automount your drives at startup then install pysdm Install pysdm

    alt text

share|improve this answer
1  
%username does not mean the user named username, it means the group named username; the % means treat the following word as a group. If you omit the %, it will be treated as a username. –  geirha Apr 17 '11 at 9:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.