How do I set read/write permissions my hard drives?
I've recently installed Ubuntu 11.10 on my laptop, but I can't do anything with my 1.5TB external drive, and my 500GB because I don't have write permission. Are there any specific commands I can use in the terminal to set the read/write permissions?
The external is NTFS, and the 500GB is ext4.
permissions
add a comment |
I've recently installed Ubuntu 11.10 on my laptop, but I can't do anything with my 1.5TB external drive, and my 500GB because I don't have write permission. Are there any specific commands I can use in the terminal to set the read/write permissions?
The external is NTFS, and the 500GB is ext4.
permissions
your external hard drive has which file system ? ext4 , ntfs ?
– One Zero
Dec 25 '11 at 10:21
if it is a ntfs drive then this Q&A should work: askubuntu.com/questions/14863/…
– fossfreedom♦
Dec 25 '11 at 10:22
The external is NTFS, and the 500GB is ext4.
– Solarton
Dec 25 '11 at 10:51
add a comment |
I've recently installed Ubuntu 11.10 on my laptop, but I can't do anything with my 1.5TB external drive, and my 500GB because I don't have write permission. Are there any specific commands I can use in the terminal to set the read/write permissions?
The external is NTFS, and the 500GB is ext4.
permissions
I've recently installed Ubuntu 11.10 on my laptop, but I can't do anything with my 1.5TB external drive, and my 500GB because I don't have write permission. Are there any specific commands I can use in the terminal to set the read/write permissions?
The external is NTFS, and the 500GB is ext4.
permissions
permissions
edited Dec 31 '11 at 19:58
Jorge Castro
36k105422617
36k105422617
asked Dec 25 '11 at 10:12
SolartonSolarton
111113
111113
your external hard drive has which file system ? ext4 , ntfs ?
– One Zero
Dec 25 '11 at 10:21
if it is a ntfs drive then this Q&A should work: askubuntu.com/questions/14863/…
– fossfreedom♦
Dec 25 '11 at 10:22
The external is NTFS, and the 500GB is ext4.
– Solarton
Dec 25 '11 at 10:51
add a comment |
your external hard drive has which file system ? ext4 , ntfs ?
– One Zero
Dec 25 '11 at 10:21
if it is a ntfs drive then this Q&A should work: askubuntu.com/questions/14863/…
– fossfreedom♦
Dec 25 '11 at 10:22
The external is NTFS, and the 500GB is ext4.
– Solarton
Dec 25 '11 at 10:51
your external hard drive has which file system ? ext4 , ntfs ?
– One Zero
Dec 25 '11 at 10:21
your external hard drive has which file system ? ext4 , ntfs ?
– One Zero
Dec 25 '11 at 10:21
if it is a ntfs drive then this Q&A should work: askubuntu.com/questions/14863/…
– fossfreedom♦
Dec 25 '11 at 10:22
if it is a ntfs drive then this Q&A should work: askubuntu.com/questions/14863/…
– fossfreedom♦
Dec 25 '11 at 10:22
The external is NTFS, and the 500GB is ext4.
– Solarton
Dec 25 '11 at 10:51
The external is NTFS, and the 500GB is ext4.
– Solarton
Dec 25 '11 at 10:51
add a comment |
9 Answers
9
active
oldest
votes
If you don't mind the security problems you can do a recursive chmod in order to change the permissions of all the files.
cd /media/your_external_drive
sudo chmod -R -v 777 *
Also if your files were created in another OS like windows they will have different ownership you can do the same as above to change the ownership of the files
cd /media/your_external_drive
sudo chown -R -v your_username:your_username *
Thats the way I solved a similar problem for my friend after migrating from windows and also after migrating from Linux Mint to Ubuntu.
I used this after formatting an old hard drive using GParted.
– johntait.org
Jan 1 '14 at 2:48
2
Don't mark all your files as executable. See below.
– danijar
May 16 '16 at 16:15
2
To only give yourself permission for the drive, but not for all of its contents, use:sudo chown -v your_username:your_username /media/your_external_drive
– dremodaris
Dec 3 '16 at 22:24
3
Please don't recommend0777a.k.a. “please-hack-my-system-and-destroy-my-data” permissions for no apparent reason! There's almost never a reason to do that because it can be avoided with more sensible modifications like changing (group) ownership. −1
– David Foerster
Oct 21 '17 at 22:00
add a comment |
for your 500 GB hard-drive (ext4) filesystem, you need to give the write and execute permission on /media/username/your_drive partition:-
sudo chmod ugo+wx /media/username/your_drive
Brief Explanation:-
sudo :- it will elevate your priviledges to execute the command.
chmod:- command to change the permissions
u :- user
g:- group
o :- other
/media/username/your_drive :- partition
For your NTFS partition please follow fossfreedom's advice.
Hope this is helpful.
It might be a good idea to omit theo
– Richard Border
Jun 25 '17 at 21:30
add a comment |
To fix read/write issue ntfs, just install these packages:
sudo apt-get install ntfs-config ntfs-3g
when installed, in the dash, type in and run: ntfs-config enter your password when prompted, and then you can enjoy read/write support for ntfs file systems.
2
this fixed my problem in Ubuntu 14.04 LTS
– psychok7
Apr 27 '14 at 22:11
add a comment |
Don't mark all your files as executable as some answers suggest. Use 755 for directories and 644 for files. This will set the x bit for directories in order to list their contents but not for files.
find /path/to/drive ( -type d -exec chmod 0755 -- {} + ) -o ( -type f -exec chmod 0644 -- {} + )
Link to the original answer on StackOverflow: How to set chmod for a folder and all of its subfolders and files in Linux Ubuntu Terminal?.
@DavidFoerster Hi, thanks for the edit. This seems like a rather big change. Maybe it should be another answer instead?
– danijar
Jun 23 '17 at 18:12
Tell you what: I'll meet you in the middle and change thefindcommand so that it does exactly the same as your twofindcommand but with only one pass through all directories.
– David Foerster
Jun 23 '17 at 18:38
Sure. You can also add the alternative below, I think it's a very practical command.
– danijar
Jun 23 '17 at 18:53
add a comment |
I was having a hard time solving the problem and this solution worked for me
install physical storage device manger:
sudo apt-get install pysdm
Open storage device manger:
sudo pysdm
Choose your required drives
- Press assist
- Uncheck open as read only
- Check owner user of file system and write your username
- Press ok and apply
- Remount the drive
Note: if you can't change files to binary executables, go to special files and check permit execution of files as binaries, and go to step 7
2
i installedpysdmbefore. Today, after a year or so i am trying to install pysdm again. I am gettingUnable to locate package pysdm
– Syed Rakib Al Hasan
Apr 16 '13 at 6:02
Same here. It must not be available anymore.
– Michael Dorst
Mar 5 '15 at 17:33
add a comment |
I had the same problem and solved it with nautilus as root.
if nautilus is not installed:
sudo apt-get install nautilus
Before running nautilus make sure the partition or hard disk is mounted.
Run nautilus as root with
sudo nautilus
Your partition or hard disk should appear on the left.
Right click on it -> select "Properties"
In the new window that appears, select the "Permissions" tab. From here you can change the owner if you need to, as well as the permission for a certain user, root, or others.
Welcome to Ask Ubuntu! I recommend to edit this answer to expand it with specific details about how to do this. (See also How do I write a good answer? for general advice about what sorts of answers are considered most valuable on Ask Ubuntu.)
– David Foerster
Jun 23 '17 at 11:52
add a comment |
Using Terminal (Use this when you are currently logged in Ubuntu):
Quickly open the terminal or press CtrlAltT
First you need to find out the partition’s name which you want to access, run the following command:
sudo fdisk -l
Then run this command in your terminal, to access your drive in read/write mode.
mount -t ntfs-3g -o rw /dev/sda1 /media/<YOUR-Partition-name>
OR
Run this command (if the previous didn’t work)
sudo ntfsfix /dev/<YOUR-Partition-name>
Welcome to Ask Ubuntu! This looks like a copy-paste of this web page. When providing answers, please provide them in your own words. Also, please provide attribution to the sources you used.
– S.L. Barth
Oct 16 '18 at 10:00
add a comment |
I look around the forum for answers.
I have 3 users, "user1" ,"user2", "user3":
- user1 : is sudo user with most of the access
- user2 : is also sudo user with less access
- user3 : is just another user with no sudo access
Im trying to give access to partitions 1 and 2 to user1, user2 and user3 .
The owner of the partition is root.
the partitions are mounted at
/media/user2/1
/media/user2/2
Note : I tried to mount the partition using
sudo mkdir /media/IntHDD170
sudo mkdir /media/IntHDD171
Which created the directory to mount the partitions.
- (I dont know this worked or not)
Step 1:
- Used nautilus as root.
- if nautilus is not installed:
sudo apt-get install nautilus - Before running nautilus make sure the partition or hard disk is mounted.
Run nautilus as root with
sudo nautilus
Your partition or hard disk should appear on the left.
Right click on it -> select "Properties"
In the new window that appears, select the "Permissions" tab.
Kept the owner as "root" and group as "user1" with read and write access for both owner and group.
From here you can change the owner if you need to, as well as the permission for a certain user, root, or others.
Note: The user1 ,user2 and user3 did not get access to the partitions yet
Step 2: Added User2 and user3 to group "user1".
usermod -aG user1 user2
usermod -aG user1 user3
Step 3:
Did
chmod -R 777 /media/user2/1
chmod -R 777 /media/user2/2
opened
sudo nano /etc/fstab
Went to the last line entered:
LABEL=/dev/sda3 /media/$USER/1 auto nosuid,nodev,nofail,x-gvfs-show 0 0
LABEL=/dev/sda4 /media/$USER/2 auto nosuid,nodev,nofail,x-gvfs-show 0 0
Saved and Exited
Note: Now i am able to read and write files to the partitions 1 and 2.
Only issue is, if i have logged into user1 , then try to access partition 1 from user2 , it is not accessible.
I do a reboot:
sudo reboot
And access partition 1 from user2.
I don't know if this is the right way to do it. Just combined many responses and did. Somehow its working.
add a comment |
Just in case!
I had this problem in a dual boot (Mint + W10) when windows didn't close down properly. I tried all the combinations to get rw permissions. Finally,
sudo mount -a
let me know the problem.
Going back to windows and turning off the pc did the job. Rights where restored! The fstab entries are written using ntfs-config.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f90339%2fhow-do-i-set-read-write-permissions-my-hard-drives%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
9 Answers
9
active
oldest
votes
9 Answers
9
active
oldest
votes
active
oldest
votes
active
oldest
votes
If you don't mind the security problems you can do a recursive chmod in order to change the permissions of all the files.
cd /media/your_external_drive
sudo chmod -R -v 777 *
Also if your files were created in another OS like windows they will have different ownership you can do the same as above to change the ownership of the files
cd /media/your_external_drive
sudo chown -R -v your_username:your_username *
Thats the way I solved a similar problem for my friend after migrating from windows and also after migrating from Linux Mint to Ubuntu.
I used this after formatting an old hard drive using GParted.
– johntait.org
Jan 1 '14 at 2:48
2
Don't mark all your files as executable. See below.
– danijar
May 16 '16 at 16:15
2
To only give yourself permission for the drive, but not for all of its contents, use:sudo chown -v your_username:your_username /media/your_external_drive
– dremodaris
Dec 3 '16 at 22:24
3
Please don't recommend0777a.k.a. “please-hack-my-system-and-destroy-my-data” permissions for no apparent reason! There's almost never a reason to do that because it can be avoided with more sensible modifications like changing (group) ownership. −1
– David Foerster
Oct 21 '17 at 22:00
add a comment |
If you don't mind the security problems you can do a recursive chmod in order to change the permissions of all the files.
cd /media/your_external_drive
sudo chmod -R -v 777 *
Also if your files were created in another OS like windows they will have different ownership you can do the same as above to change the ownership of the files
cd /media/your_external_drive
sudo chown -R -v your_username:your_username *
Thats the way I solved a similar problem for my friend after migrating from windows and also after migrating from Linux Mint to Ubuntu.
I used this after formatting an old hard drive using GParted.
– johntait.org
Jan 1 '14 at 2:48
2
Don't mark all your files as executable. See below.
– danijar
May 16 '16 at 16:15
2
To only give yourself permission for the drive, but not for all of its contents, use:sudo chown -v your_username:your_username /media/your_external_drive
– dremodaris
Dec 3 '16 at 22:24
3
Please don't recommend0777a.k.a. “please-hack-my-system-and-destroy-my-data” permissions for no apparent reason! There's almost never a reason to do that because it can be avoided with more sensible modifications like changing (group) ownership. −1
– David Foerster
Oct 21 '17 at 22:00
add a comment |
If you don't mind the security problems you can do a recursive chmod in order to change the permissions of all the files.
cd /media/your_external_drive
sudo chmod -R -v 777 *
Also if your files were created in another OS like windows they will have different ownership you can do the same as above to change the ownership of the files
cd /media/your_external_drive
sudo chown -R -v your_username:your_username *
Thats the way I solved a similar problem for my friend after migrating from windows and also after migrating from Linux Mint to Ubuntu.
If you don't mind the security problems you can do a recursive chmod in order to change the permissions of all the files.
cd /media/your_external_drive
sudo chmod -R -v 777 *
Also if your files were created in another OS like windows they will have different ownership you can do the same as above to change the ownership of the files
cd /media/your_external_drive
sudo chown -R -v your_username:your_username *
Thats the way I solved a similar problem for my friend after migrating from windows and also after migrating from Linux Mint to Ubuntu.
edited Oct 7 '13 at 15:48
Seth♦
34.1k26110162
34.1k26110162
answered Dec 25 '11 at 12:20
user39240
I used this after formatting an old hard drive using GParted.
– johntait.org
Jan 1 '14 at 2:48
2
Don't mark all your files as executable. See below.
– danijar
May 16 '16 at 16:15
2
To only give yourself permission for the drive, but not for all of its contents, use:sudo chown -v your_username:your_username /media/your_external_drive
– dremodaris
Dec 3 '16 at 22:24
3
Please don't recommend0777a.k.a. “please-hack-my-system-and-destroy-my-data” permissions for no apparent reason! There's almost never a reason to do that because it can be avoided with more sensible modifications like changing (group) ownership. −1
– David Foerster
Oct 21 '17 at 22:00
add a comment |
I used this after formatting an old hard drive using GParted.
– johntait.org
Jan 1 '14 at 2:48
2
Don't mark all your files as executable. See below.
– danijar
May 16 '16 at 16:15
2
To only give yourself permission for the drive, but not for all of its contents, use:sudo chown -v your_username:your_username /media/your_external_drive
– dremodaris
Dec 3 '16 at 22:24
3
Please don't recommend0777a.k.a. “please-hack-my-system-and-destroy-my-data” permissions for no apparent reason! There's almost never a reason to do that because it can be avoided with more sensible modifications like changing (group) ownership. −1
– David Foerster
Oct 21 '17 at 22:00
I used this after formatting an old hard drive using GParted.
– johntait.org
Jan 1 '14 at 2:48
I used this after formatting an old hard drive using GParted.
– johntait.org
Jan 1 '14 at 2:48
2
2
Don't mark all your files as executable. See below.
– danijar
May 16 '16 at 16:15
Don't mark all your files as executable. See below.
– danijar
May 16 '16 at 16:15
2
2
To only give yourself permission for the drive, but not for all of its contents, use:
sudo chown -v your_username:your_username /media/your_external_drive– dremodaris
Dec 3 '16 at 22:24
To only give yourself permission for the drive, but not for all of its contents, use:
sudo chown -v your_username:your_username /media/your_external_drive– dremodaris
Dec 3 '16 at 22:24
3
3
Please don't recommend
0777 a.k.a. “please-hack-my-system-and-destroy-my-data” permissions for no apparent reason! There's almost never a reason to do that because it can be avoided with more sensible modifications like changing (group) ownership. −1– David Foerster
Oct 21 '17 at 22:00
Please don't recommend
0777 a.k.a. “please-hack-my-system-and-destroy-my-data” permissions for no apparent reason! There's almost never a reason to do that because it can be avoided with more sensible modifications like changing (group) ownership. −1– David Foerster
Oct 21 '17 at 22:00
add a comment |
for your 500 GB hard-drive (ext4) filesystem, you need to give the write and execute permission on /media/username/your_drive partition:-
sudo chmod ugo+wx /media/username/your_drive
Brief Explanation:-
sudo :- it will elevate your priviledges to execute the command.
chmod:- command to change the permissions
u :- user
g:- group
o :- other
/media/username/your_drive :- partition
For your NTFS partition please follow fossfreedom's advice.
Hope this is helpful.
It might be a good idea to omit theo
– Richard Border
Jun 25 '17 at 21:30
add a comment |
for your 500 GB hard-drive (ext4) filesystem, you need to give the write and execute permission on /media/username/your_drive partition:-
sudo chmod ugo+wx /media/username/your_drive
Brief Explanation:-
sudo :- it will elevate your priviledges to execute the command.
chmod:- command to change the permissions
u :- user
g:- group
o :- other
/media/username/your_drive :- partition
For your NTFS partition please follow fossfreedom's advice.
Hope this is helpful.
It might be a good idea to omit theo
– Richard Border
Jun 25 '17 at 21:30
add a comment |
for your 500 GB hard-drive (ext4) filesystem, you need to give the write and execute permission on /media/username/your_drive partition:-
sudo chmod ugo+wx /media/username/your_drive
Brief Explanation:-
sudo :- it will elevate your priviledges to execute the command.
chmod:- command to change the permissions
u :- user
g:- group
o :- other
/media/username/your_drive :- partition
For your NTFS partition please follow fossfreedom's advice.
Hope this is helpful.
for your 500 GB hard-drive (ext4) filesystem, you need to give the write and execute permission on /media/username/your_drive partition:-
sudo chmod ugo+wx /media/username/your_drive
Brief Explanation:-
sudo :- it will elevate your priviledges to execute the command.
chmod:- command to change the permissions
u :- user
g:- group
o :- other
/media/username/your_drive :- partition
For your NTFS partition please follow fossfreedom's advice.
Hope this is helpful.
edited Apr 13 '17 at 12:24
Community♦
1
1
answered Aug 6 '12 at 17:18
AnkitAnkit
2,350134373
2,350134373
It might be a good idea to omit theo
– Richard Border
Jun 25 '17 at 21:30
add a comment |
It might be a good idea to omit theo
– Richard Border
Jun 25 '17 at 21:30
It might be a good idea to omit the
o– Richard Border
Jun 25 '17 at 21:30
It might be a good idea to omit the
o– Richard Border
Jun 25 '17 at 21:30
add a comment |
To fix read/write issue ntfs, just install these packages:
sudo apt-get install ntfs-config ntfs-3g
when installed, in the dash, type in and run: ntfs-config enter your password when prompted, and then you can enjoy read/write support for ntfs file systems.
2
this fixed my problem in Ubuntu 14.04 LTS
– psychok7
Apr 27 '14 at 22:11
add a comment |
To fix read/write issue ntfs, just install these packages:
sudo apt-get install ntfs-config ntfs-3g
when installed, in the dash, type in and run: ntfs-config enter your password when prompted, and then you can enjoy read/write support for ntfs file systems.
2
this fixed my problem in Ubuntu 14.04 LTS
– psychok7
Apr 27 '14 at 22:11
add a comment |
To fix read/write issue ntfs, just install these packages:
sudo apt-get install ntfs-config ntfs-3g
when installed, in the dash, type in and run: ntfs-config enter your password when prompted, and then you can enjoy read/write support for ntfs file systems.
To fix read/write issue ntfs, just install these packages:
sudo apt-get install ntfs-config ntfs-3g
when installed, in the dash, type in and run: ntfs-config enter your password when prompted, and then you can enjoy read/write support for ntfs file systems.
edited Aug 29 '15 at 15:28
answered Mar 18 '12 at 14:53
blade19899blade19899
17.5k18100160
17.5k18100160
2
this fixed my problem in Ubuntu 14.04 LTS
– psychok7
Apr 27 '14 at 22:11
add a comment |
2
this fixed my problem in Ubuntu 14.04 LTS
– psychok7
Apr 27 '14 at 22:11
2
2
this fixed my problem in Ubuntu 14.04 LTS
– psychok7
Apr 27 '14 at 22:11
this fixed my problem in Ubuntu 14.04 LTS
– psychok7
Apr 27 '14 at 22:11
add a comment |
Don't mark all your files as executable as some answers suggest. Use 755 for directories and 644 for files. This will set the x bit for directories in order to list their contents but not for files.
find /path/to/drive ( -type d -exec chmod 0755 -- {} + ) -o ( -type f -exec chmod 0644 -- {} + )
Link to the original answer on StackOverflow: How to set chmod for a folder and all of its subfolders and files in Linux Ubuntu Terminal?.
@DavidFoerster Hi, thanks for the edit. This seems like a rather big change. Maybe it should be another answer instead?
– danijar
Jun 23 '17 at 18:12
Tell you what: I'll meet you in the middle and change thefindcommand so that it does exactly the same as your twofindcommand but with only one pass through all directories.
– David Foerster
Jun 23 '17 at 18:38
Sure. You can also add the alternative below, I think it's a very practical command.
– danijar
Jun 23 '17 at 18:53
add a comment |
Don't mark all your files as executable as some answers suggest. Use 755 for directories and 644 for files. This will set the x bit for directories in order to list their contents but not for files.
find /path/to/drive ( -type d -exec chmod 0755 -- {} + ) -o ( -type f -exec chmod 0644 -- {} + )
Link to the original answer on StackOverflow: How to set chmod for a folder and all of its subfolders and files in Linux Ubuntu Terminal?.
@DavidFoerster Hi, thanks for the edit. This seems like a rather big change. Maybe it should be another answer instead?
– danijar
Jun 23 '17 at 18:12
Tell you what: I'll meet you in the middle and change thefindcommand so that it does exactly the same as your twofindcommand but with only one pass through all directories.
– David Foerster
Jun 23 '17 at 18:38
Sure. You can also add the alternative below, I think it's a very practical command.
– danijar
Jun 23 '17 at 18:53
add a comment |
Don't mark all your files as executable as some answers suggest. Use 755 for directories and 644 for files. This will set the x bit for directories in order to list their contents but not for files.
find /path/to/drive ( -type d -exec chmod 0755 -- {} + ) -o ( -type f -exec chmod 0644 -- {} + )
Link to the original answer on StackOverflow: How to set chmod for a folder and all of its subfolders and files in Linux Ubuntu Terminal?.
Don't mark all your files as executable as some answers suggest. Use 755 for directories and 644 for files. This will set the x bit for directories in order to list their contents but not for files.
find /path/to/drive ( -type d -exec chmod 0755 -- {} + ) -o ( -type f -exec chmod 0644 -- {} + )
Link to the original answer on StackOverflow: How to set chmod for a folder and all of its subfolders and files in Linux Ubuntu Terminal?.
edited Jun 23 '17 at 18:39
David Foerster
27.9k1364110
27.9k1364110
answered May 16 '16 at 16:14
danijardanijar
207110
207110
@DavidFoerster Hi, thanks for the edit. This seems like a rather big change. Maybe it should be another answer instead?
– danijar
Jun 23 '17 at 18:12
Tell you what: I'll meet you in the middle and change thefindcommand so that it does exactly the same as your twofindcommand but with only one pass through all directories.
– David Foerster
Jun 23 '17 at 18:38
Sure. You can also add the alternative below, I think it's a very practical command.
– danijar
Jun 23 '17 at 18:53
add a comment |
@DavidFoerster Hi, thanks for the edit. This seems like a rather big change. Maybe it should be another answer instead?
– danijar
Jun 23 '17 at 18:12
Tell you what: I'll meet you in the middle and change thefindcommand so that it does exactly the same as your twofindcommand but with only one pass through all directories.
– David Foerster
Jun 23 '17 at 18:38
Sure. You can also add the alternative below, I think it's a very practical command.
– danijar
Jun 23 '17 at 18:53
@DavidFoerster Hi, thanks for the edit. This seems like a rather big change. Maybe it should be another answer instead?
– danijar
Jun 23 '17 at 18:12
@DavidFoerster Hi, thanks for the edit. This seems like a rather big change. Maybe it should be another answer instead?
– danijar
Jun 23 '17 at 18:12
Tell you what: I'll meet you in the middle and change the
find command so that it does exactly the same as your two find command but with only one pass through all directories.– David Foerster
Jun 23 '17 at 18:38
Tell you what: I'll meet you in the middle and change the
find command so that it does exactly the same as your two find command but with only one pass through all directories.– David Foerster
Jun 23 '17 at 18:38
Sure. You can also add the alternative below, I think it's a very practical command.
– danijar
Jun 23 '17 at 18:53
Sure. You can also add the alternative below, I think it's a very practical command.
– danijar
Jun 23 '17 at 18:53
add a comment |
I was having a hard time solving the problem and this solution worked for me
install physical storage device manger:
sudo apt-get install pysdm
Open storage device manger:
sudo pysdm
Choose your required drives
- Press assist
- Uncheck open as read only
- Check owner user of file system and write your username
- Press ok and apply
- Remount the drive
Note: if you can't change files to binary executables, go to special files and check permit execution of files as binaries, and go to step 7
2
i installedpysdmbefore. Today, after a year or so i am trying to install pysdm again. I am gettingUnable to locate package pysdm
– Syed Rakib Al Hasan
Apr 16 '13 at 6:02
Same here. It must not be available anymore.
– Michael Dorst
Mar 5 '15 at 17:33
add a comment |
I was having a hard time solving the problem and this solution worked for me
install physical storage device manger:
sudo apt-get install pysdm
Open storage device manger:
sudo pysdm
Choose your required drives
- Press assist
- Uncheck open as read only
- Check owner user of file system and write your username
- Press ok and apply
- Remount the drive
Note: if you can't change files to binary executables, go to special files and check permit execution of files as binaries, and go to step 7
2
i installedpysdmbefore. Today, after a year or so i am trying to install pysdm again. I am gettingUnable to locate package pysdm
– Syed Rakib Al Hasan
Apr 16 '13 at 6:02
Same here. It must not be available anymore.
– Michael Dorst
Mar 5 '15 at 17:33
add a comment |
I was having a hard time solving the problem and this solution worked for me
install physical storage device manger:
sudo apt-get install pysdm
Open storage device manger:
sudo pysdm
Choose your required drives
- Press assist
- Uncheck open as read only
- Check owner user of file system and write your username
- Press ok and apply
- Remount the drive
Note: if you can't change files to binary executables, go to special files and check permit execution of files as binaries, and go to step 7
I was having a hard time solving the problem and this solution worked for me
install physical storage device manger:
sudo apt-get install pysdm
Open storage device manger:
sudo pysdm
Choose your required drives
- Press assist
- Uncheck open as read only
- Check owner user of file system and write your username
- Press ok and apply
- Remount the drive
Note: if you can't change files to binary executables, go to special files and check permit execution of files as binaries, and go to step 7
edited Mar 18 '12 at 15:39
Yi Jiang
93911227
93911227
answered Mar 18 '12 at 13:57
RemonRemon
7711
7711
2
i installedpysdmbefore. Today, after a year or so i am trying to install pysdm again. I am gettingUnable to locate package pysdm
– Syed Rakib Al Hasan
Apr 16 '13 at 6:02
Same here. It must not be available anymore.
– Michael Dorst
Mar 5 '15 at 17:33
add a comment |
2
i installedpysdmbefore. Today, after a year or so i am trying to install pysdm again. I am gettingUnable to locate package pysdm
– Syed Rakib Al Hasan
Apr 16 '13 at 6:02
Same here. It must not be available anymore.
– Michael Dorst
Mar 5 '15 at 17:33
2
2
i installed
pysdm before. Today, after a year or so i am trying to install pysdm again. I am getting Unable to locate package pysdm– Syed Rakib Al Hasan
Apr 16 '13 at 6:02
i installed
pysdm before. Today, after a year or so i am trying to install pysdm again. I am getting Unable to locate package pysdm– Syed Rakib Al Hasan
Apr 16 '13 at 6:02
Same here. It must not be available anymore.
– Michael Dorst
Mar 5 '15 at 17:33
Same here. It must not be available anymore.
– Michael Dorst
Mar 5 '15 at 17:33
add a comment |
I had the same problem and solved it with nautilus as root.
if nautilus is not installed:
sudo apt-get install nautilus
Before running nautilus make sure the partition or hard disk is mounted.
Run nautilus as root with
sudo nautilus
Your partition or hard disk should appear on the left.
Right click on it -> select "Properties"
In the new window that appears, select the "Permissions" tab. From here you can change the owner if you need to, as well as the permission for a certain user, root, or others.
Welcome to Ask Ubuntu! I recommend to edit this answer to expand it with specific details about how to do this. (See also How do I write a good answer? for general advice about what sorts of answers are considered most valuable on Ask Ubuntu.)
– David Foerster
Jun 23 '17 at 11:52
add a comment |
I had the same problem and solved it with nautilus as root.
if nautilus is not installed:
sudo apt-get install nautilus
Before running nautilus make sure the partition or hard disk is mounted.
Run nautilus as root with
sudo nautilus
Your partition or hard disk should appear on the left.
Right click on it -> select "Properties"
In the new window that appears, select the "Permissions" tab. From here you can change the owner if you need to, as well as the permission for a certain user, root, or others.
Welcome to Ask Ubuntu! I recommend to edit this answer to expand it with specific details about how to do this. (See also How do I write a good answer? for general advice about what sorts of answers are considered most valuable on Ask Ubuntu.)
– David Foerster
Jun 23 '17 at 11:52
add a comment |
I had the same problem and solved it with nautilus as root.
if nautilus is not installed:
sudo apt-get install nautilus
Before running nautilus make sure the partition or hard disk is mounted.
Run nautilus as root with
sudo nautilus
Your partition or hard disk should appear on the left.
Right click on it -> select "Properties"
In the new window that appears, select the "Permissions" tab. From here you can change the owner if you need to, as well as the permission for a certain user, root, or others.
I had the same problem and solved it with nautilus as root.
if nautilus is not installed:
sudo apt-get install nautilus
Before running nautilus make sure the partition or hard disk is mounted.
Run nautilus as root with
sudo nautilus
Your partition or hard disk should appear on the left.
Right click on it -> select "Properties"
In the new window that appears, select the "Permissions" tab. From here you can change the owner if you need to, as well as the permission for a certain user, root, or others.
edited Jun 24 '17 at 16:06
answered May 20 '17 at 21:45
aexaex
11
11
Welcome to Ask Ubuntu! I recommend to edit this answer to expand it with specific details about how to do this. (See also How do I write a good answer? for general advice about what sorts of answers are considered most valuable on Ask Ubuntu.)
– David Foerster
Jun 23 '17 at 11:52
add a comment |
Welcome to Ask Ubuntu! I recommend to edit this answer to expand it with specific details about how to do this. (See also How do I write a good answer? for general advice about what sorts of answers are considered most valuable on Ask Ubuntu.)
– David Foerster
Jun 23 '17 at 11:52
Welcome to Ask Ubuntu! I recommend to edit this answer to expand it with specific details about how to do this. (See also How do I write a good answer? for general advice about what sorts of answers are considered most valuable on Ask Ubuntu.)
– David Foerster
Jun 23 '17 at 11:52
Welcome to Ask Ubuntu! I recommend to edit this answer to expand it with specific details about how to do this. (See also How do I write a good answer? for general advice about what sorts of answers are considered most valuable on Ask Ubuntu.)
– David Foerster
Jun 23 '17 at 11:52
add a comment |
Using Terminal (Use this when you are currently logged in Ubuntu):
Quickly open the terminal or press CtrlAltT
First you need to find out the partition’s name which you want to access, run the following command:
sudo fdisk -l
Then run this command in your terminal, to access your drive in read/write mode.
mount -t ntfs-3g -o rw /dev/sda1 /media/<YOUR-Partition-name>
OR
Run this command (if the previous didn’t work)
sudo ntfsfix /dev/<YOUR-Partition-name>
Welcome to Ask Ubuntu! This looks like a copy-paste of this web page. When providing answers, please provide them in your own words. Also, please provide attribution to the sources you used.
– S.L. Barth
Oct 16 '18 at 10:00
add a comment |
Using Terminal (Use this when you are currently logged in Ubuntu):
Quickly open the terminal or press CtrlAltT
First you need to find out the partition’s name which you want to access, run the following command:
sudo fdisk -l
Then run this command in your terminal, to access your drive in read/write mode.
mount -t ntfs-3g -o rw /dev/sda1 /media/<YOUR-Partition-name>
OR
Run this command (if the previous didn’t work)
sudo ntfsfix /dev/<YOUR-Partition-name>
Welcome to Ask Ubuntu! This looks like a copy-paste of this web page. When providing answers, please provide them in your own words. Also, please provide attribution to the sources you used.
– S.L. Barth
Oct 16 '18 at 10:00
add a comment |
Using Terminal (Use this when you are currently logged in Ubuntu):
Quickly open the terminal or press CtrlAltT
First you need to find out the partition’s name which you want to access, run the following command:
sudo fdisk -l
Then run this command in your terminal, to access your drive in read/write mode.
mount -t ntfs-3g -o rw /dev/sda1 /media/<YOUR-Partition-name>
OR
Run this command (if the previous didn’t work)
sudo ntfsfix /dev/<YOUR-Partition-name>
Using Terminal (Use this when you are currently logged in Ubuntu):
Quickly open the terminal or press CtrlAltT
First you need to find out the partition’s name which you want to access, run the following command:
sudo fdisk -l
Then run this command in your terminal, to access your drive in read/write mode.
mount -t ntfs-3g -o rw /dev/sda1 /media/<YOUR-Partition-name>
OR
Run this command (if the previous didn’t work)
sudo ntfsfix /dev/<YOUR-Partition-name>
edited Oct 16 '18 at 9:21
muru
1
1
answered Oct 16 '18 at 9:18
PRATIVA DASPRATIVA DAS
1
1
Welcome to Ask Ubuntu! This looks like a copy-paste of this web page. When providing answers, please provide them in your own words. Also, please provide attribution to the sources you used.
– S.L. Barth
Oct 16 '18 at 10:00
add a comment |
Welcome to Ask Ubuntu! This looks like a copy-paste of this web page. When providing answers, please provide them in your own words. Also, please provide attribution to the sources you used.
– S.L. Barth
Oct 16 '18 at 10:00
Welcome to Ask Ubuntu! This looks like a copy-paste of this web page. When providing answers, please provide them in your own words. Also, please provide attribution to the sources you used.
– S.L. Barth
Oct 16 '18 at 10:00
Welcome to Ask Ubuntu! This looks like a copy-paste of this web page. When providing answers, please provide them in your own words. Also, please provide attribution to the sources you used.
– S.L. Barth
Oct 16 '18 at 10:00
add a comment |
I look around the forum for answers.
I have 3 users, "user1" ,"user2", "user3":
- user1 : is sudo user with most of the access
- user2 : is also sudo user with less access
- user3 : is just another user with no sudo access
Im trying to give access to partitions 1 and 2 to user1, user2 and user3 .
The owner of the partition is root.
the partitions are mounted at
/media/user2/1
/media/user2/2
Note : I tried to mount the partition using
sudo mkdir /media/IntHDD170
sudo mkdir /media/IntHDD171
Which created the directory to mount the partitions.
- (I dont know this worked or not)
Step 1:
- Used nautilus as root.
- if nautilus is not installed:
sudo apt-get install nautilus - Before running nautilus make sure the partition or hard disk is mounted.
Run nautilus as root with
sudo nautilus
Your partition or hard disk should appear on the left.
Right click on it -> select "Properties"
In the new window that appears, select the "Permissions" tab.
Kept the owner as "root" and group as "user1" with read and write access for both owner and group.
From here you can change the owner if you need to, as well as the permission for a certain user, root, or others.
Note: The user1 ,user2 and user3 did not get access to the partitions yet
Step 2: Added User2 and user3 to group "user1".
usermod -aG user1 user2
usermod -aG user1 user3
Step 3:
Did
chmod -R 777 /media/user2/1
chmod -R 777 /media/user2/2
opened
sudo nano /etc/fstab
Went to the last line entered:
LABEL=/dev/sda3 /media/$USER/1 auto nosuid,nodev,nofail,x-gvfs-show 0 0
LABEL=/dev/sda4 /media/$USER/2 auto nosuid,nodev,nofail,x-gvfs-show 0 0
Saved and Exited
Note: Now i am able to read and write files to the partitions 1 and 2.
Only issue is, if i have logged into user1 , then try to access partition 1 from user2 , it is not accessible.
I do a reboot:
sudo reboot
And access partition 1 from user2.
I don't know if this is the right way to do it. Just combined many responses and did. Somehow its working.
add a comment |
I look around the forum for answers.
I have 3 users, "user1" ,"user2", "user3":
- user1 : is sudo user with most of the access
- user2 : is also sudo user with less access
- user3 : is just another user with no sudo access
Im trying to give access to partitions 1 and 2 to user1, user2 and user3 .
The owner of the partition is root.
the partitions are mounted at
/media/user2/1
/media/user2/2
Note : I tried to mount the partition using
sudo mkdir /media/IntHDD170
sudo mkdir /media/IntHDD171
Which created the directory to mount the partitions.
- (I dont know this worked or not)
Step 1:
- Used nautilus as root.
- if nautilus is not installed:
sudo apt-get install nautilus - Before running nautilus make sure the partition or hard disk is mounted.
Run nautilus as root with
sudo nautilus
Your partition or hard disk should appear on the left.
Right click on it -> select "Properties"
In the new window that appears, select the "Permissions" tab.
Kept the owner as "root" and group as "user1" with read and write access for both owner and group.
From here you can change the owner if you need to, as well as the permission for a certain user, root, or others.
Note: The user1 ,user2 and user3 did not get access to the partitions yet
Step 2: Added User2 and user3 to group "user1".
usermod -aG user1 user2
usermod -aG user1 user3
Step 3:
Did
chmod -R 777 /media/user2/1
chmod -R 777 /media/user2/2
opened
sudo nano /etc/fstab
Went to the last line entered:
LABEL=/dev/sda3 /media/$USER/1 auto nosuid,nodev,nofail,x-gvfs-show 0 0
LABEL=/dev/sda4 /media/$USER/2 auto nosuid,nodev,nofail,x-gvfs-show 0 0
Saved and Exited
Note: Now i am able to read and write files to the partitions 1 and 2.
Only issue is, if i have logged into user1 , then try to access partition 1 from user2 , it is not accessible.
I do a reboot:
sudo reboot
And access partition 1 from user2.
I don't know if this is the right way to do it. Just combined many responses and did. Somehow its working.
add a comment |
I look around the forum for answers.
I have 3 users, "user1" ,"user2", "user3":
- user1 : is sudo user with most of the access
- user2 : is also sudo user with less access
- user3 : is just another user with no sudo access
Im trying to give access to partitions 1 and 2 to user1, user2 and user3 .
The owner of the partition is root.
the partitions are mounted at
/media/user2/1
/media/user2/2
Note : I tried to mount the partition using
sudo mkdir /media/IntHDD170
sudo mkdir /media/IntHDD171
Which created the directory to mount the partitions.
- (I dont know this worked or not)
Step 1:
- Used nautilus as root.
- if nautilus is not installed:
sudo apt-get install nautilus - Before running nautilus make sure the partition or hard disk is mounted.
Run nautilus as root with
sudo nautilus
Your partition or hard disk should appear on the left.
Right click on it -> select "Properties"
In the new window that appears, select the "Permissions" tab.
Kept the owner as "root" and group as "user1" with read and write access for both owner and group.
From here you can change the owner if you need to, as well as the permission for a certain user, root, or others.
Note: The user1 ,user2 and user3 did not get access to the partitions yet
Step 2: Added User2 and user3 to group "user1".
usermod -aG user1 user2
usermod -aG user1 user3
Step 3:
Did
chmod -R 777 /media/user2/1
chmod -R 777 /media/user2/2
opened
sudo nano /etc/fstab
Went to the last line entered:
LABEL=/dev/sda3 /media/$USER/1 auto nosuid,nodev,nofail,x-gvfs-show 0 0
LABEL=/dev/sda4 /media/$USER/2 auto nosuid,nodev,nofail,x-gvfs-show 0 0
Saved and Exited
Note: Now i am able to read and write files to the partitions 1 and 2.
Only issue is, if i have logged into user1 , then try to access partition 1 from user2 , it is not accessible.
I do a reboot:
sudo reboot
And access partition 1 from user2.
I don't know if this is the right way to do it. Just combined many responses and did. Somehow its working.
I look around the forum for answers.
I have 3 users, "user1" ,"user2", "user3":
- user1 : is sudo user with most of the access
- user2 : is also sudo user with less access
- user3 : is just another user with no sudo access
Im trying to give access to partitions 1 and 2 to user1, user2 and user3 .
The owner of the partition is root.
the partitions are mounted at
/media/user2/1
/media/user2/2
Note : I tried to mount the partition using
sudo mkdir /media/IntHDD170
sudo mkdir /media/IntHDD171
Which created the directory to mount the partitions.
- (I dont know this worked or not)
Step 1:
- Used nautilus as root.
- if nautilus is not installed:
sudo apt-get install nautilus - Before running nautilus make sure the partition or hard disk is mounted.
Run nautilus as root with
sudo nautilus
Your partition or hard disk should appear on the left.
Right click on it -> select "Properties"
In the new window that appears, select the "Permissions" tab.
Kept the owner as "root" and group as "user1" with read and write access for both owner and group.
From here you can change the owner if you need to, as well as the permission for a certain user, root, or others.
Note: The user1 ,user2 and user3 did not get access to the partitions yet
Step 2: Added User2 and user3 to group "user1".
usermod -aG user1 user2
usermod -aG user1 user3
Step 3:
Did
chmod -R 777 /media/user2/1
chmod -R 777 /media/user2/2
opened
sudo nano /etc/fstab
Went to the last line entered:
LABEL=/dev/sda3 /media/$USER/1 auto nosuid,nodev,nofail,x-gvfs-show 0 0
LABEL=/dev/sda4 /media/$USER/2 auto nosuid,nodev,nofail,x-gvfs-show 0 0
Saved and Exited
Note: Now i am able to read and write files to the partitions 1 and 2.
Only issue is, if i have logged into user1 , then try to access partition 1 from user2 , it is not accessible.
I do a reboot:
sudo reboot
And access partition 1 from user2.
I don't know if this is the right way to do it. Just combined many responses and did. Somehow its working.
edited Oct 16 '18 at 9:24
muru
1
1
answered Jan 25 '18 at 10:23
vb217vb217
244
244
add a comment |
add a comment |
Just in case!
I had this problem in a dual boot (Mint + W10) when windows didn't close down properly. I tried all the combinations to get rw permissions. Finally,
sudo mount -a
let me know the problem.
Going back to windows and turning off the pc did the job. Rights where restored! The fstab entries are written using ntfs-config.
add a comment |
Just in case!
I had this problem in a dual boot (Mint + W10) when windows didn't close down properly. I tried all the combinations to get rw permissions. Finally,
sudo mount -a
let me know the problem.
Going back to windows and turning off the pc did the job. Rights where restored! The fstab entries are written using ntfs-config.
add a comment |
Just in case!
I had this problem in a dual boot (Mint + W10) when windows didn't close down properly. I tried all the combinations to get rw permissions. Finally,
sudo mount -a
let me know the problem.
Going back to windows and turning off the pc did the job. Rights where restored! The fstab entries are written using ntfs-config.
Just in case!
I had this problem in a dual boot (Mint + W10) when windows didn't close down properly. I tried all the combinations to get rw permissions. Finally,
sudo mount -a
let me know the problem.
Going back to windows and turning off the pc did the job. Rights where restored! The fstab entries are written using ntfs-config.
answered Dec 19 '18 at 18:54
FabianCidFabianCid
11
11
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f90339%2fhow-do-i-set-read-write-permissions-my-hard-drives%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
your external hard drive has which file system ? ext4 , ntfs ?
– One Zero
Dec 25 '11 at 10:21
if it is a ntfs drive then this Q&A should work: askubuntu.com/questions/14863/…
– fossfreedom♦
Dec 25 '11 at 10:22
The external is NTFS, and the 500GB is ext4.
– Solarton
Dec 25 '11 at 10:51