Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have an external hard drive that when I try to transfer files to it when logged in as a user it returns permission denied. I can open the files as a user fine but only transfer files to it as root.
I opened nautilus as root and tried to changed the permissions through there but they just revert back to the defaults a second later.
Anyone know how I can change the permissions to allow my user account to copy files to the drive? It's not a huge deal to open the folder as root but would be nice if I could just do it as a user.
To help you on this, more information is needed.
We need to know:
What file system is on the drive?
How is it being mounted? Do you do it manually? Is it done automatically by gnome? Automatically at boot?
What is it's mount point?
What are the permissions of the mount point?
If you do not know any of the answers to the above questions, then type this in a command window and post the results.
Code:
$ mount
1. The file system is vfat or FAT32 if that is more specific
2. I mount it manually
3. /media/sdb1
4. I believe root can create and delete files while others can only access files. I get this by right clicking the sdb1 folder>properties>permissions. It thats not it, I'm not sure how to find out.
I have an external hard drive that when I try to transfer files to it when logged in as a user it returns permission denied. I can open the files as a user fine but only transfer files to it as root.
I opened nautilus as root and tried to changed the permissions through there but they just revert back to the defaults a second later.
Anyone know how I can change the permissions to allow my user account to copy files to the drive? It's not a huge deal to open the folder as root but would be nice if I could just do it as a user.
Thanks
check your etc ftsb file
/dev/sda1 /mnt/usbdrive ext2 defaults 0 0
if somthing like that is there then in gui kde or gnome you can loggin in as root go to the /mnt/usbdrive right click it properties and set group to disk then in permissions click group and put it to can modify set to sub folders .. then go to your user manger and make sure the user that wants to use it has a check next to disk in groups.. thats the GUI way If you knew how to use the chown you would'nt be asking this. GUI on
1. The file system is vfat or FAT32 if that is more specific
2. I mount it manually
3. /media/sdb1
4. I believe root can create and delete files while others can only access files. I ...
As root, unmount the drive
Code:
# umount /media/sdb1
Then change the permissions on /media/sdb1
Code:
# chmod 777 /media/sdb1
Then mount it manually using which ever command you usually do, or use
Code:
# mount /dev/sdb1 /media/sdb1
Then try it to see if your user can write files, if not, we will move onto the next step.
Sorry for the long delay in posting but after running 'chmod 777 /media/sdb1' I still am getting the error message saying "You do not have permission to write to this folder."
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.