Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old February 5th, 2003, 06:44 PM
alteredlife alteredlife is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: IL
Posts: 7 alteredlife User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to alteredlife
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??

Reply With Quote
  #2  
Old February 6th, 2003, 08:52 AM
alexgreg's Avatar
alexgreg alexgreg is offline
Full Access
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jun 2000
Location: London, UK
Posts: 2,019 alexgreg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 sec
Reputation Power: 11
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)

Reply With Quote
  #3  
Old February 6th, 2003, 03:03 PM
alteredlife alteredlife is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: IL
Posts: 7 alteredlife User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to alteredlife
Its not an NTFS file system im trying to access. its FAT. does that change anything for my problem?

Reply With Quote
  #4  
Old February 6th, 2003, 03:42 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
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.

Reply With Quote
  #5  
Old February 7th, 2003, 01:09 AM
alteredlife alteredlife is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: IL
Posts: 7 alteredlife User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to alteredlife
ok well, im new to Linux..can you tell me what my fstab file should look like exactly with the user command in it?

Reply With Quote
  #6  
Old February 7th, 2003, 01:13 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
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)

Reply With Quote
  #7  
Old February 7th, 2003, 02:21 PM
alteredlife alteredlife is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: IL
Posts: 7 alteredlife User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to alteredlife
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

Reply With Quote
  #8  
Old February 7th, 2003, 02:25 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
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

Reply With Quote
  #9  
Old February 7th, 2003, 03:47 PM
NoXcuz's Avatar
NoXcuz NoXcuz is offline
Wiking
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Sep 2000
Location: Sweden
Posts: 3,608 NoXcuz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 49 m 27 sec
Reputation Power: 11
Quote:
...buy a new HD for my own...

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

Reply With Quote
  #10  
Old February 7th, 2003, 04:18 PM
alteredlife alteredlife is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: IL
Posts: 7 alteredlife User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to alteredlife
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > chmod command


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway