LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 09-05-2015, 09:35 AM   #1
Adams Seven
LQ Newbie
 
Registered: Sep 2015
Distribution: Linux Mint 17.2
Posts: 23

Rep: Reputation: Disabled
Can't change file permissions on mounted volume; should I care?


I keep data on a separate disk that I mount after starting Linux Mint 17. I also use files from this disk when running Windows 7 as a standard user on my dual-boot computer.

In Linux Mint, I can read and write document files on this disk in Libre Office. Libre Office in Windows, on the other hand, made me save the files from this disk with a different name, and indicated I didn't own the original.

I'm the only one who uses this computer, so I thought I'd go into chmod and do a ugo=rw for the files in question.

Alas, I can't. The chmod commands work fine for files in my home directory, but not for files in /media/diskname (e.g., in the separate disk).

Is there a way around this? I don't expect to do much work under Windows in the future, but worry about what will happen when I use this data disk with another computer running Linux. I fear I'll have to open all the files as read only, and save them with different names.
 
Old 09-05-2015, 11:30 AM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,502

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Quote:
The chmod commands work fine for files in my home directory, but not for files in /media/diskname (e.g., in the separate disk).
The normal user owns the directories/files in /home/user. The normal user does not own directories/files anywhere else on the system as a general rule. With Mint, to change owner/permissions you need to prefix the command with sudo to get root privileges. Also, is this partition in Linux filesystem format or windows. Generally sperking, standard Linux permissions are not understood by windows so if this is a windows (ntfs/FAT32) filesystem, that won't work.
 
Old 09-05-2015, 12:09 PM   #3
Adams Seven
LQ Newbie
 
Registered: Sep 2015
Distribution: Linux Mint 17.2
Posts: 23

Original Poster
Rep: Reputation: Disabled
Thanks for the response, yancek, although I got a bit of a sinking feeling when I read it.

The drive was formatted with FAT32 under Windows. I have used "su" to try changing chmod settings on this drive as root user, but without results.

If I understand your post correctly, it sounds like there's nothing I can do to set permissions properly on this drive without formatting the drive with a Linux file format. Is that correct?
 
Old 09-05-2015, 12:46 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by Adams Seven View Post
If I understand your post correctly, it sounds like there's nothing I can do to set permissions properly on this drive without formatting the drive with a Linux file format. Is that correct?
Indeed, Windows' filesystems simply don't support UNIX file permissions, so you would have to reformat using a filesystem that supports those permissions. Keep in mind that Windows by default can't read any of the Linux filesystems, though, so that you will have to look for appropriate drivers for your Windows installation to have access to that filesystem.
 
Old 09-05-2015, 12:58 PM   #5
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Since the FAT32 filesystem carries no indication of ownership, Libre Office in Windows must be seeing some ownership tag contained within the file itself. Such a tag would not be affected by your choice of a different filesystem.
 
Old 09-05-2015, 06:44 PM   #6
Adams Seven
LQ Newbie
 
Registered: Sep 2015
Distribution: Linux Mint 17.2
Posts: 23

Original Poster
Rep: Reputation: Disabled
I checked the drive, and it looks like it's NTFS after all. I apologize for giving misinformation in my second post in this thread. I also ran an experiment with image files (untouched by Libre Office) in two test directories, one on the data drive and one in my home directory. Once again, chmod worked as advertised in home, but changed nothing on the data drive.

I found this post on the askubuntu forum:

https://askubuntu.com/questions/1184...at32-partition

and think I ought to try the advice given before troubling linuxquestions users for more help. I might postpone the experimentation, though. I'm still very new to this OS, and the commands given in the linked thread look challenging for a newbie. I'd like to learn more basic Linux commands first!
 
Old 09-05-2015, 07:02 PM   #7
gautinger39
LQ Newbie
 
Registered: Sep 2015
Distribution: Mint 17.2
Posts: 2

Rep: Reputation: Disabled
Hi Adam,

also as a linux newbie this is my first post here!

I had a similar problem here too. chmod will not change the ownership of a file. The command you can look at is chown.

you also need to do this with root account. Let me know if it doesn't work and I'll have to revert to the way I solved the problem.

There is so much to learn- and I forget so much after such a short time.......
Robert
 
  


Reply



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
change the permissions of files in a mounted drive sfeng Linux - Hardware 1 08-20-2011 09:52 AM
Cannot change file permissions on a mounted file system koodoo Linux - Newbie 2 04-06-2010 11:22 PM
Can't change permissions on mounted partition OlRoy Linux - General 2 09-24-2004 02:22 AM
How to change permissions of a mounted partition seran Linux - General 2 08-13-2004 01:43 AM
How to change permissions for Mounted Filesystem leroy27336 Linux - General 3 11-15-2003 03:08 AM

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

All times are GMT -5. The time now is 06:26 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