How do I change permissions. I cannot copy files to my USB stick because it says you do not have permission as you are not root.

Asked by Paul E H Jones

When I try to copy files to my USB disk they are refused,because I now do not have permission. It used to work ok but now I also get a message 'your USB disk is read only'. I know how to change ordinary permissions via thee properties information, but this does not work for the USB disk. Similarly permission is refused when I connect my HP245 photosmart printer to a USB slot. I use an XD picture card and cannot transfer photo files back to the card from my computer, which has Ubuntu 6.06, and have an AMD64 3000.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
zzzxxx
Solved:
Last query:
Last reply:
Revision history for this message
tamara liscaljet (n-liscaljet) said :
#1

it should work using chmod. go to the directory in the terminal where you usb-stick is, like:

tammetje@tammetje-laptop:/media/
tammetje@tammetje-laptop:/media$ chmod 777 disk(it is called disk in my OS)

if you use the line chmod "code" and the name, the permissions should be changed. 777 is to read, write, and execute for all( root, groups, users, etc), most common is 755, read write and execute for root, and read and execute for users and stuff.

i hope this helps you out

greetz tammetje

Revision history for this message
Paul E H Jones (pauljones584) said :
#2

tamara liscaljet wrote:
> Your question #14751 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/14751
>
> Status: Open => Answered
>
> tamara liscaljet proposed the following answer:
> it should work using chmod. go to the directory in the terminal where
> you usb-stick is, like:
>
> tammetje@tammetje-laptop:/media/
> tammetje@tammetje-laptop:/media$ chmod 777 disk(it is called disk in my OS)
>
> if you use the line chmod "code" and the name, the permissions should be
> changed. 777 is to read, write, and execute for all( root, groups,
> users, etc), most common is 755, read write and execute for root, and
> read and execute for users and stuff.
>
> i hope this helps you out
>
> greetz tammetje
>
>
Dear Tamara,

thank you for your reply to my question. I am very sorry that I have not
replied before. I have been busy and away a lot, but really it was
because I struggled with your answer and didn't get anywhere, so I gave
up until now.

I do not know very much about how to use the terminal, so although I
have typed in your suggestion in a number of ways but it has got me nowhere.
My machine is on Ubuntu 6.06LTS ,does this help ?

You said use the line chmod "code"and the name
What is the code ? Is it 777 or 755 ? or....
What is the name ? Is it USB or what ?

As you can see I am a beginner at this kind of thing.

Paul Jones

Revision history for this message
Best zzzxxx (michalski-deactivatedaccount-deactivatedaccount) said :
#3

if your usb drive is listed as disk when you go to Places-->Computer--> (its a menu)
then you need to type

personx@computerx:/media$ sudo chmod 777 disk

note: if its called something else replace the "disk" part of the above command

777 means everyone will be able to access and write/modify files on your usb drive, use this command sparingly!
a good site to find what codes you want to put (777, 775, ect) is here
http://jeffhowden.com/code/javascript/chmod/
it will help you find the right code if your not sure of what one to use in the future.

if you have any questions at all feel free to reply, we're here to help
sorry it took so long for someone to reply

Brian Michalski

Revision history for this message
zzzxxx (michalski-deactivatedaccount-deactivatedaccount) said :
#4

please mark this question as answered if it worked

Revision history for this message
Paul E H Jones (pauljones584) said :
#5

Thank you Brian. Answer to question 14751. Yes it worked so now I can
get on with things. Much obliged, sorry my acknowledgement was tardy.
Though on the forum site I can't find out how to mark it . Ah well. Will
try again.
Paul Jones

Brian Michalski wrote:
> Your question #14751 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/14751
>
> Brian Michalski requested for more information:
> please mark this question as answered if it worked
>
>

Revision history for this message
Paul E H Jones (pauljones584) said :
#6

Thanks Brian. I have solved the problem thanks to you and Tamara. I've even got back to this page to do the necessary.

Paul

Revision history for this message
Paul E H Jones (pauljones584) said :
#7

Thanks Brian Michalski, that solved my question.

Revision history for this message
Danny (cadarova) said :
#8

Hi there ¡
Mm I have a similar problem with the permissions. When I'm programming in Bluefish and I have to saving and keep saving and keep saving and in the time of test my scripts in the navigator, it shows a fatal error in line 0 which means I have not permissions. I already try to change my permissions from the terminal using chmod 777 and it works just once. In the next time I saved my scripts and test them, the error repeats again and again and I'm really tired to be changing permissions all the time...Please help me..what can I do

Revision history for this message
Joe Herrmann (joe855611) said :
#9

Have probably the same problem, but ... the name of my USB Stick is JOE'S.
Well the J, the O, the E and the S are accepted , but the ' char is simply ignored by chmod ... it says it cant find JOES

So is this a bug ?

Joe eoJ

Revision history for this message
Dave H (dave-hills-2009) said :
#10

This also affects me after upgrade to Lucid. Seen a post that said un-install via synaptic usbmount. Did this rebooted and I can now copy to and from my USB stick without using SUDO at the command line.

Good work around.

Dave H.