LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-15-2005, 02:39 AM   #1
raid517
Member
 
Registered: Feb 2002
Posts: 393

Rep: Reputation: 30
How to change ownership of a drive?


Hi I installed a new harddrive and everything is working fine.

The only problem is that whenever I try to download anything directly to it from the internet, I get an error message saying that I don't have permission to write to that drive.

The thing is though I can write to it if i move files to it locally.

Here is the fatab entry I have for that device:

/dev/hdb1 /mnt/hdb1 vfat auto,users,exec,umask=000,shortname=mixed,quiet 0 0


Also I tried changing ownership of the drive by doing:

# chown -R raid517 /dev/hdb1
# chgrp -R raid517 /dev/hdb1
# chown -R raid517 /mnt/hdb1
# chgrp -R raid517 /mnt/hdb1

But regardless of this whenever I look at the ownership of the drive and the mount point it always reads /root/root.

As I intend to use this drive as an FTP drive, being able to write to it via the web would be cool.

Basically i just want read write, run riot and do whatever the hell I please permission on the drive. It won't store any important stuff, so I just want as much access to it as I can get.

GJ
 
Old 09-15-2005, 08:15 AM   #2
guideweb
Member
 
Registered: Mar 2004
Location: /planet/earth
Posts: 110

Rep: Reputation: 15
Hello,
You need to specify permision into your /etc/fstab file


Eg :

/dev/sda5 /mnt/datadisk vfat defaults,uid=501,gid=501,fmask=000,dmask=000 0 3

mount sda5 on datadisk
type vfat

The uid and gid set the owner and the group of the files (501 is my login on my personal machine)
And fmask and dmask set the default permissions to rxw for evrybody


the 0 3 :
0 is the backup frequency
and 3 is the order to check at boot time.
 
  


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
Cannot change ownership jamaso Slackware 11 11-08-2010 11:01 AM
Can't change root ownership of NTFS USB hard drive rrrssssss Mandriva 14 07-10-2006 04:42 PM
Change ownership apffal SUSE / openSUSE 1 11-09-2005 02:08 AM
unable to change ownership arjunjeyaprakash Linux - Newbie 12 09-06-2005 02:02 PM
change ownership Johng Linux - General 4 04-06-2004 02:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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