LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-24-2010, 05:19 PM   #1
Cyberman
Member
 
Registered: Aug 2005
Distribution: Debian Stable
Posts: 218

Rep: Reputation: 17
I can't seem to change permissions on a batch of files for some odd freakin' reason


This is one of those... "uhh?" situations.
In general, I'm trying to give user "workstation" read/write permission to the files on the flash drive.
I can't seem to configure the box to let me do that.

Here's the dealio.
I got a flash drive with some files in it.
I've also got the flash drive tied into /etc/fstab so that the UUID is automagically recognized and it's assigned to "/media/flash1".

UUID="0EC4-B05A" /media/flash1 vfat user,auto,rw,exec 0 0

Looks good to me. I don't know why there would be any issues.

Here is /media/flash1 unmounted

drwxrwx--- 2 workstation 4096 2010-04-20 10:16 flash1

Here is /media/flash1 mounted

drwxr-xr-x 3 root 4096 1969-12-31 18:00 flash1

Here is the file I have inside that doesn't seem to give my user access (only root can save).

universe:/media/flash1# ls -g

-rwxr-xr-x 1 root 16163 2010-04-16 12:58 journal.abw


As you may notice, I keep my journal on the flashdrive. I want to be able to save to it while under a non-root account. But that's not so easy for some odd reason. I don't know what is going on. When I try to do this...

universe:/media/flash1# chown -R root:workstation /media/flash1

I get this:

Quote:
chown: changing ownership of `/media/flash1/journal.abw': Operation not permitted

chown: changing ownership of `/media/flash1/.Trash-0/files': Operation not permitted
chown: changing ownership of `/media/flash1/.Trash-0': Operation not permitted
chown: changing ownership of `/media/flash1': Operation not permitted

What is going on?
I don't quite understand it.
Maybe my skills are rusty.

In general, I'm trying to give user "workstation" read/write permission to the files on the flash drive.
I can't seem to configure the box to let me do that.

Last edited by Cyberman; 04-24-2010 at 05:22 PM.
 
Old 04-24-2010, 06:45 PM   #2
Bratmon
Member
 
Registered: Jul 2009
Location: 75.126.162.205:80
Distribution: Arch / Mint 17
Posts: 297
Blog Entries: 3

Rep: Reputation: 50
Fat doesn't have permissions.
 
Old 04-24-2010, 06:55 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
In addition to Bratmon's post:

If you need "workstation" to own the media/files/directories, add
his UID to the fstab-line; if you just need him (and everyone else
on the machine) to be able to read-write to the device, add umask=000
to the fstab line. Of course you can do both.


Cheers,
Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot change permissions on files StefanP Linux - Newbie 4 04-30-2007 04:35 PM
how to change the permissions for files ? Aerolinux Linux - Hardware 4 02-23-2007 09:12 PM
Change permissions 4 many files at 1ce? TruthSeeker Linux - Newbie 3 10-31-2005 08:23 AM
How do you change a files permissions Charlie Chan Linux - Security 8 10-20-2004 10:19 PM
How do I change permissions of files/directories? Okashira Linux - Newbie 5 01-12-2004 05:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration