PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > mount windoze partition for user automatically
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

mount windoze partition for user automatically

Réponse
 
LinkBack Outils de la discussion
Vieux 31/07/2007, 05h30   #1
Phill Atwood
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut mount windoze partition for user automatically


I've got a 40GB drive and the first 20GB contains Windoze XP. I can
mount this manually fine. I can mount it automatically too. But if I
try to access it as non-root I get:

$ cd /windoze
bash: cd: /windoze: Permission denied

Permissions on my /windoze directory are:

dr-x------ 1 root root 8192 2007-07-29 17:49 windoze

If I umount /windoze and change the permissions they seem to revert back
to the above after I reboot. Accessing it as root works fine, but I
would like to access it as a regular user. Aside: I read in some tux
documentation that for Windows 2000 and Windows XP you can change the
type to vfat and get read/write access to the partition. This would be
great but I am sceptical that it is dangerous to mount rw under ntfs
type but okay under vfat.

My fstab file is:

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/sda1 /windoze ntfs user,auto,noexec,ro 0 0
/dev/sda2 / ext3 defaults,errors=remount-ro 0
1
/dev/sda8 /home ext3 defaults 0 2
/dev/sda7 /tmp ext3 defaults 0 2
/dev/sda5 /usr ext3 defaults 0 2
/dev/sda6 /var ext3 defaults 0 2
/dev/sda3 none swap sw 0 0
/dev/hda /media/cdrom0 udf,iso9660 user,noauto 0 0

$ fdisk -l

Disk /dev/sda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 2432 19535008+ 7 HPFS/NTFS
/dev/sda2 2433 2493 489982+ 83 Linux
/dev/sda3 4621 4863 1951897+ 82 Linux swap /
Solaris
/dev/sda4 2494 4620 17085127+ 5 Extended
/dev/sda5 2494 3101 4883728+ 83 Linux
/dev/sda6 3102 3466 2931831 83 Linux
/dev/sda7 3467 3527 489951 83 Linux
/dev/sda8 3528 4620 8779491 83 Linux

Partition table entries are not in disk order

$

Any is appreciated.

Phill



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 31/07/2007, 07h50   #2
Mumia W..
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: mount windoze partition for user automatically

On 07/30/2007 11:09 PM, Phill Atwood wrote:
> I've got a 40GB drive and the first 20GB contains Windoze XP. I can
> mount this manually fine. I can mount it automatically too. But if I
> try to access it as non-root I get:
>
> $ cd /windoze
> bash: cd: /windoze: Permission denied
>
> Permissions on my /windoze directory are:
>
> dr-x------ 1 root root 8192 2007-07-29 17:49 windoze
>
> If I umount /windoze and change the permissions they seem to revert back
> to the above after I reboot. Accessing it as root works fine, but I
> would like to access it as a regular user. [...]


Read "man 8 mount"--especially the section relating to ntfs. You
probably want to set the umask, uid and gid.




--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 23h54.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 3,07882 seconds with 10 queries