LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-24-2005, 12:01 PM   #1
unihiekka
Member
 
Registered: Aug 2005
Distribution: SuSE Linux / Scientific Linux / [K|X]ubuntu
Posts: 273

Rep: Reputation: 32
NTFS under Linux: Locked & chmod: Operation not supported


I have Linux SUSE 9.3 Pro and a partition with Windows XP Home on it. I used to be able to open it normally (only read permissions), but as I reinstalled Linux due to a mouse problem, I found that the permissions have been altered. I would like to be able to read (and copy to my linux directory) from this ntfs partition. I have tried chown - R /WinXP as a superuser, but now I am allowed into all directories, but the files are still locked, except for the superuser... Chmod on independent files gives me "chmod: operation not supported". Somehow the complete folder seems to be locked.

# fdisk -l

Disk /dev/sda: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 5 40131 de Dell Utility
/dev/sda2 * 6 6756 54227407+ 7 HPFS/NTFS
/dev/sda3 6757 9725 23848492+ f W95 Ext'd (LBA)
/dev/sda5 6757 8714 15727603+ 83 Linux
/dev/sda6 8715 9041 2626596 83 Linux
/dev/sda7 9042 9368 2626596 83 Linux
/dev/sda8 9369 9725 2867571 82 Linux swap / Solaris

and /etc/fstab looks this way:

/dev/sda5 / reiserfs acl,user_xattr 1 1
/dev/sda2 /WinXP/ ntfs defaults 0 0
/dev/sda7 /home reiserfs acl,user_xattr 1 2
/dev/sda6 /usr reiserfs acl,user_xattr 1 2
/dev/sda8 swap swap pri=42 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
sysfs /sys sysfs noauto 0 0
/dev/dvd /media/dvd subfs noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/dvdrecorder /media/dvdrecorder subfs noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/fd0 /media/floppy subfs noauto,fs=floppyfss,procuid,nodev,nosuid,sync 0 0

Is there something I need to alter? Entries in fstab? I've read something with umask=0000 instead of defaults on line 2 of fstab... Can anybody help? Do I have to run some kernel/KDE system configuration afterwards?

Thanks in advance!
 
Old 08-24-2005, 12:05 PM   #2
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
well, you really need to edit your /etc/fstab file so that it is set for 'user' to be allowed to read from it.

the wrong part its:

/dev/sda2 /WinXP/ ntfs defaults 0 0

defaults i believe is for read only for root user. you will need to change this to something like auto,user or give a guid maybe........
 
Old 08-24-2005, 03:42 PM   #3
drumz
Member
 
Registered: Apr 2005
Location: Jenks, OK, USA
Distribution: Slackware
Posts: 428

Rep: Reputation: 217Reputation: 217Reputation: 217
Change it to

/dev/sda2 /WinXP/ ntfs ro,umask=000 0 0

This will allow everyone to read the partition.
 
Old 08-24-2005, 07:18 PM   #4
primo
Member
 
Registered: Jun 2005
Posts: 542

Rep: Reputation: 34
The mount(8) manpage doesn't mention dmask & fmask and it has been a feature of the ntfs driver since long.
See /usr/src/linux/Documentation/filesystems/ntfs.txt

The defaults values are:
dmask=0077
fmask=0177
uid=0 & gid=0

dmask=0022 & fmask=0133 are healthier
 
Old 08-26-2005, 08:09 AM   #5
unihiekka
Member
 
Registered: Aug 2005
Distribution: SuSE Linux / Scientific Linux / [K|X]ubuntu
Posts: 273

Original Poster
Rep: Reputation: 32
do I have to run something do complete configuration in SuSE 9.3? something like ldconfig or SuSEconfig? How can I run them?
 
Old 08-26-2005, 08:23 AM   #6
leadazide
Member
 
Registered: Apr 2004
Location: Germany
Distribution: SuSE 11.0, Ubuntu 7.10
Posts: 390

Rep: Reputation: 30
After you modified fstab you don't need to run anything, just remount the partition.
As to the config tools, you... just answered your own question. To run ldconfig, as root type ldconfig, and for SuSEconfig - SuSEconfig. But you won't need to run the second manually and the first only in rare cases when you manually installed some library which some program depends on and it couldn't find this library.
 
Old 08-26-2005, 10:07 AM   #7
unihiekka
Member
 
Registered: Aug 2005
Distribution: SuSE Linux / Scientific Linux / [K|X]ubuntu
Posts: 273

Original Poster
Rep: Reputation: 32
Yes, thanks! It works perfectly now...!!!
 
  


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
setfacl: test: Operation not supported raxxal Mandriva 6 10-25-2012 06:09 AM
port: SIOCSIFMAP: Operation not supported Kostko Linux - Networking 5 10-14-2007 10:52 AM
can't do iwlist scan : operation not supported flowchartz Linux - Wireless Networking 7 02-09-2006 08:39 PM
wpasupplicant: operation not supported error Markup Linux - Wireless Networking 1 09-14-2005 10:20 AM
chmod "operation not supported" ntfs ScuZ187 Linux - Software 1 08-14-2005 10:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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