|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
chmod command
Ok, ive mounted my windows drive and other partition in Linux so i could gain access to them.
The only problem is i cant get write access. i need to move files between the drives. heres the command i used : chmod 777 d_drive and after entering that it tells me : (requested: 0777, actual: 0755): Operation not permitted. Any ideas as to what i can do to get this working?? |
|
#2
|
||||
|
||||
|
Write support to NTFS is disabled in the kernel by default. To enable it you will have to re-build your kernel with that option enabled. Note that it is classed as "very experimental", so this might not be a good idea...
__________________
Alex (http://www.alex-greg.com) |
|
#3
|
|||
|
|||
|
Its not an NTFS file system im trying to access. its FAT. does that change anything for my problem?
|
|
#4
|
|||
|
|||
|
Yes.
Fat does not support chmod (nor chown!). so it is of no use here. iirc: For FAT you have to supply "user=" setting in your fstab file to give a specific user write rights to it or use the option "user" to make it user-mountable. then it will be writable by the user that mounted it.
__________________
-- Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more. |
|
#5
|
|||
|
|||
|
ok well, im new to Linux..can you tell me what my fstab file should look like exactly with the user command in it?
|
|
#6
|
|||
|
|||
|
very important info for all linux newbies:
"man commandname/filename" should always be your first try if you step into something new. "man fstab" will show the help how to use this file. "man mount" will show you more details about what options you can put here (fstab is just a way to automate "mount" commands) i cannot test this right now (yes, my linux box is still down ) but from my head and the man pages on the internet, i´ll try to build the line for you. taking no responsibility of course...for example, assuming your windows-filesystem is "/dev/hda1" and should be mounted to "/mnt/windows": /dev/hda1 /mnt/windows vfat user to make the filesystem user-mountable (login as user then and type "mount /mnt/windows") the second way that does a similar task but will mount it at boot-time: /dev/hda1 /mnt/windows vfat auto,uid=<your user id here> and an all-rounder: /dev/hda1 /mnt/windows vfat auto,umask=000 (here you get the actual "chmod 777" equivalent) |
|
#7
|
|||
|
|||
|
my fstab looks like this :
/dev/hda6 /d_drive vfat auto,unmask=000 0 0 /dev/hda1 /c_drive vfat auto,unmask=000 0 0 |
|
#8
|
|||
|
|||
|
it´s "umask", not "unmask". Besides this it looks ok. Does it work then?
Again: I can´t tell for sure unless you get me some root access to a linux box or wait till i have the time to buy a new HD for my own ![]() |
|
#9
|
||||
|
||||
|
Quote:
Want my old 30 MB HD? ![]() //NoXcuz
__________________
UN*X is sexy! who | grep -i blonde | date; cd ~; unzip; touch; strip; finger; mount; gasp; yes; uptime; umount; sleep |
|
#10
|
|||
|
|||
|
Hey there, M.Hirsch,
Thanks for your help..yeah..stupid me read as 'unmask'...changed to umask, everything works fine, i have full access to my drives. thanks for your patient help ![]() |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > Linux Help > chmod command |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|