View previous topic :: View next topic |
Author |
Message |
xtlosx Apprentice
Joined: 14 Jan 2006 Posts: 219 Location: Chicago
|
Posted: Tue Mar 14, 2006 6:29 pm Post subject: fstab mounting question |
|
|
hey guys, i have an extra drive that is normally mounted at /mnt/200gig .
it is mounted in my fstab now, and i want it to be read\write to users on my machine, since mainly i'm the only one on the machine really anyways.. for now the entry in fstab is this
Code: |
/dev/hdb1 /mnt/200gig ext2 auto,user,rw 0 0
|
what else would i need to do to make this work properly.. because.. i'm having a problem in samba.. where a windows computer can't write to the drive... and i believe it is directly related to this problem... in samba they're added to the list of r\w users and what not, just doesn't seem to be working... but that's another story any help with this issue would be terrific!! Thanks folks! |
|
Back to top |
|
|
dmartinsca Guru
Joined: 09 Dec 2005 Posts: 303 Location: Ontario, Canada
|
Posted: Tue Mar 14, 2006 6:36 pm Post subject: |
|
|
You probably need to change the permissions on /mnt/200gig when the drive is mounted.
chmod +rwx /mnt/200gig will let everyone access the drive. If there are already files on the drive then chances are some of them have different permissions. You can add the -R option to chmod to recusively change permissions on all the files. Be careful with this, of course!
The user and users options for the mount command mean that a user/all users can mount and unmount the partition but not necessarily that they can read and write to it.
Last edited by dmartinsca on Tue Mar 14, 2006 6:42 pm; edited 1 time in total |
|
Back to top |
|
|
xtlosx Apprentice
Joined: 14 Jan 2006 Posts: 219 Location: Chicago
|
Posted: Tue Mar 14, 2006 6:38 pm Post subject: |
|
|
well i'm pretty sure there are other ways, thanks for your suggestion, but i'll see what the group says... i'm pretty sure there's something that needs to be added to the fstab to tell it which users can read\write fully.. or something im sure. thanks! |
|
Back to top |
|
|
dmartinsca Guru
Joined: 09 Dec 2005 Posts: 303 Location: Ontario, Canada
|
Posted: Tue Mar 14, 2006 6:47 pm Post subject: |
|
|
you may be thinking of the umask=xxx option which doesn't apply to ext2 |
|
Back to top |
|
|
xtlosx Apprentice
Joined: 14 Jan 2006 Posts: 219 Location: Chicago
|
Posted: Tue Mar 14, 2006 7:22 pm Post subject: |
|
|
ok... so i wonder what would be the best way to do this then. |
|
Back to top |
|
|
Raptor911 Tux's lil' helper
Joined: 04 Feb 2003 Posts: 82 Location: California, USA
|
Posted: Tue Mar 14, 2006 7:33 pm Post subject: |
|
|
most likely you are not using ACL (access control lists) so there is no way to add write access for samba to your drive
so the easy/best way is
chmod +rw -R /mnt/200gig
as dmartinsca sugested
Also, make shure in your /etc/samba/smb.conf file you have
writeable = yes
in the block that defines the share in question |
|
Back to top |
|
|
Raptor911 Tux's lil' helper
Joined: 04 Feb 2003 Posts: 82 Location: California, USA
|
Posted: Tue Mar 14, 2006 7:35 pm Post subject: |
|
|
also, if you are the only one that uses your computer, you dont have to worrie about scurity anyway, so ACL's would be worthless |
|
Back to top |
|
|
xtlosx Apprentice
Joined: 14 Jan 2006 Posts: 219 Location: Chicago
|
Posted: Tue Mar 14, 2006 7:37 pm Post subject: |
|
|
i tried that command, it went through fine..... i added the writeable line in my smb.conf , restarted samba and what not... umounted the drive\remounted... and a system user still gets permission denied... hmmm anyother ideas?
question, can i change this filesystem from ext2 to ext3 now, without having to wipe the drive and begin over again? |
|
Back to top |
|
|
Raptor911 Tux's lil' helper
Joined: 04 Feb 2003 Posts: 82 Location: California, USA
|
Posted: Tue Mar 14, 2006 7:50 pm Post subject: |
|
|
i dont know about converting it but ext3 will not help you with samba |
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
|
Back to top |
|
|
|