How do I open a file for editing?

Asked by mak7751

I cannot use my usb-connected-scanner with a normal user. (1) (for Ubuntu)

[For Ubuntu 8.04]

1. Open "/etc/udev/rules.d/40-basic-permissions.rules" file.
2. Edit "0664" to "0666" in "USB devices" section.

Before the edit --------------------------
# USB devices (usbfs replacement)
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0664"
SUBSYSTEM=="usb_device", MODE="0664"

After the edit --------------------------
# USB devices (usbfs replacement)
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0666"
SUBSYSTEM=="usb_device", MODE="0666"

3. Restart the OS.

I need to know how to open the file to edit it. I can find it. I just can't open it.
I would greatly appreciate some help.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu xsane Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was originally filed as bug #323391.

Revision history for this message
C de-Avillez (hggdh2) said :
#1

Thank you for taking the time to report this issue and helping to make Ubuntu better. Examining the information you have given us, this does not appear to be a bug report so we are closing it and converting it to a question in the support tracker. We appreciate the difficulties you are facing, but it would make more sense to raise problems you are having in the support tracker at https://answers.launchpad.net/ubuntu if you are uncertain if they are bugs. For help on reporting bugs, see https://help.ubuntu.com/community/ReportingBugs#When%20not%20to%20file%20a%20bug.

Revision history for this message
C de-Avillez (hggdh2) said :
#2

mak7751: Although I am not sure why you would like to change the default permissions for an USB device, if you want to pursue this you have to edit the file as root.

1. open a terminal;
2. enter 'sudo gedit /etc/udev/rules.d/40-basic-permissions.rules'
3. you will be asked for your password. Enter it.
4. Make your change & save the file.
5. quit gedit

Please be aware that an error in this file may have serious consequences. I strongly recommend you to save the original file as a backup.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#3

Open a Terminal from the menu Applications → Accessories → Terminal and type:

id

please copy and paste the result here

Thank you

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#4

maybe this aswered question can help you https://answers.launchpad.net/ubuntu/+source/xsane/+question/58817

Hth

Can you help with this problem?

Provide an answer of your own, or ask mak7751 for more information if necessary.

To post a message you must log in.