LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-05-2003, 12:06 AM   #1
amoor757
LQ Newbie
 
Registered: Oct 2003
Location: wisconsin
Distribution: slack
Posts: 7

Rep: Reputation: 0
Question Howto change WIndows Drive Permissions?


Hello folks,

I am running slackware 9.0. I have a /dev/hdc installed as a
storage drive containing whatnot. Originally the 80GB drive
was partitioned under Win2kPro. Following I created share
settings on the whole drive and consequently set the
drive to read only. Is this problem above and beyond chroot,
or am I missing the obvious?
As I see it right now, I would mount the drive under a
win2kPro machine and it would recognize the share and
read only settings, at which I could change right?

Thanks
Andrew M
 
Old 11-05-2003, 12:17 AM   #2
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
if you're using ntfs for your windows partition, i wouldn't suggest trying to write to that partition. the default mount settings should suffice just fine. but it's not chroot. you need to add umask options for that drive's line in /etc/fstab.
 
Old 11-05-2003, 12:21 AM   #3
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 47
if you're talking about accessing the drive/s from linux, i believe you will still need the right permissions set in linux, no matter what the permissions are in windows. you can change your umask settings in fstab to what you want them to be for the drive.
 
Old 11-05-2003, 12:28 AM   #4
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
no. read/exec(enter) permissions are all you need. also since it's not advisable to write to ntfs anyway, you don't need the umask option. the ro option will suffice.

Last edited by megaspaz; 11-05-2003 at 12:31 AM.
 
Old 11-05-2003, 12:28 AM   #5
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
*crap. double post hit the wrong button*

Last edited by megaspaz; 11-05-2003 at 12:31 AM.
 
Old 11-05-2003, 12:34 AM   #6
amoor757
LQ Newbie
 
Registered: Oct 2003
Location: wisconsin
Distribution: slack
Posts: 7

Original Poster
Rep: Reputation: 0
Hi

Oops! I really mean chmod, not chroot.
Regardless I'm investigating fstab. Thanks.
 
Old 11-05-2003, 12:49 AM   #7
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
chmod will not work on a mounted windows drive either. the changes you need to make are in fstab. what permissions are you trying to get and what filesystem are you using for your windows partitions?
 
Old 11-05-2003, 01:02 AM   #8
amoor757
LQ Newbie
 
Registered: Oct 2003
Location: wisconsin
Distribution: slack
Posts: 7

Original Poster
Rep: Reputation: 0
Hello Again,

Ok, I think I finally have an Idea of what I want to do.
The partition is infact NTFS. And I DO need to write
to it, for it is storage. I guess it would be nice to
be able to execute programs from it too.
So, is it possible to use a filesystem of msdos instead of NTFS?
Can I write to NTFS under linux?

Thanks much,
Andrew M
 
Old 11-05-2003, 01:05 AM   #9
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 47
did i miss somewhere that it's nfts? if so, sorry.

>edit: okay i see you just posted that it's nfts. the answer is "no," you don't want to/can't write to it. you can compile your kernel for ntfs-write support, but it's still considered experimental and could be extremely *unreliable.* use extreme caution, or better yet don't even try it.

imho your best option would be to convert the drive to fat32 if you want to write to it in linux. what i do is keep a separate small ntfs partition for win2k, and keep the data separate on its own partitions so i can write to them from linux.


--------------------\\\
if it's fat and you want to write to it, it's umask=000 (don't ask me why, i don't understand that one myself, as 777 normally is rwx. ) it goes in the column that sometimes has the default option, auto, user, etc. e.g.:

default,user,umask=000

Last edited by synaptical; 11-05-2003 at 01:11 AM.
 
Old 11-05-2003, 01:11 AM   #10
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
no you can't write to ntfs from linux. they're working on that and everything is experimental. it's very possible to hose your windows system if you do try to write to ntfs. you can try to convert ntfs to fat32 using something like partition magic on windows. but i don't know how good it is. also any security features you are using on windows will no longer work if you do convert it to fat32 which i don't know what will happen to your windows set up.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
howto change GROUP permissions (have read/googled for hours) arjay Debian 8 08-09-2005 11:40 AM
Change permissions on ntfs drive PieEater Linux - Newbie 2 09-11-2004 10:26 AM
Howto set permissions and automount for new drive? andymadigan Debian 4 08-02-2004 11:17 PM
How do I change permissions for my windows partition? cereal83 Slackware 9 07-15-2004 03:06 PM
Howto: set permissions on a ntfs drive. Coramoor Slackware 8 05-12-2003 11:51 PM


All times are GMT -5. The time now is 04:51 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration