Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
als user kein zugriff auf gemountete partitionen
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Yonathan
l33t
l33t


Joined: 05 Jan 2005
Posts: 662

PostPosted: Tue Apr 05, 2005 2:08 pm    Post subject: als user kein zugriff auf gemountete partitionen Reply with quote

hallo.

ich habe auf meinem rechner xp und gentoo parallel laufen.

xp ist auf 3 partitionen verteilt und auf hda

gentoo ist auf hdb und dort mit einigen partitionen vertreten.

die xp partitionen habe ich unter /mnt/windows_x x=c,d,e

als root kann ich auf die xp-partitionen zugreifen, nur leider als user nicht. da bekomme ich immer die meldung: zugriff verweigert auf /mnt/windows_x

/etc/fstab schaut so aus:
Quote:
/dev/hdb1 /boot reiserfs noauto,noatime,notail 1 1
/dev/hdb3 / reiserfs noatime 0 0
/dev/hdb5 /mnt/windows_j vfat auto,user,rw 0 0
/dev/hdb6 /mnt/entwicklung reiserfs noatime 0 0
/dev/hdb2 none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrw iso9660 noauto,ro,user 0 0
/dev/cdroms/cdrom1 /mnt/dvdrw auto noauto,ro,user 0 0
/dev/fd0 /mnt/floppy auto noauto,user 0 0
/dev/hda3 /mnt/windows_c vfat auto,rw,user 0 0
/dev/hda5 /mnt/windows_d vfat auto,rw,user 0 0
/dev/hda6 /mnt/windows_e vfat noatime 0 0


einfach nur mount gibt folgendes aus:
Quote:

/dev/hdb3 on / type reiserfs (rw,noatime)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev type ramfs (rw)
none on /dev/pts type devpts (rw)
none on /dev/shm type tmpfs (rw)
/dev/hdb5 on /mnt/windows_j type vfat (rw,noexec,nosuid,nodev)
/dev/hda3 on /mnt/windows_c type vfat (rw,noexec,nosuid,nodev)
/dev/hda5 on /mnt/windows_d type vfat (rw,noexec,nosuid,nodev)
/dev/hda6 on /mnt/windows_e type vfat (rw,noexec,nosuid,nodev)
/dev/hdb6 on /mnt/entwicklung type reiserfs (rw,noatime)
none on /proc/bus/usb type usbfs (rw)


wie bekomme ich zugriffsrechte auf die partitionen?

ein chown yona:users /mnt/windows_x wird abgelehnt:
chown: changing ownership of `windows_x': Operation not permitted

wie komme ich an die daten auf den xp partitionen ran???

vielen dank.
yona
_________________
Athlon XP+ 2400 Thunderbird,
Abit NF7
1536MB DDR (266),
Radeon 9200 (256mb)
gentoo 2.6.19-r5
Back to top
View user's profile Send private message
Deever
Veteran
Veteran


Joined: 06 Jul 2002
Posts: 1354
Location: Zürich / Switzerland

PostPosted: Tue Apr 05, 2005 2:13 pm    Post subject: Reply with quote

man fstab
man mount
Wie sieht es denn mit Rechten auf einem FAT aus?

HTH!
/dev
Back to top
View user's profile Send private message
Yonathan
l33t
l33t


Joined: 05 Jan 2005
Posts: 662

PostPosted: Tue Apr 05, 2005 2:22 pm    Post subject: Reply with quote

die mans habe ich bereits gelesen, aber da finde ich nicht das, was ich haben will :(

die rechte sind so verteilt, dass nur der root drauf zugreifen kann :(

ls -l /mnt bringt folgendes:
Quote:

drwxr-xr-x 2 root root 48 Jan 1 16:37 cdrw
drwxr-xr-x 2 root root 48 Apr 5 15:42 dvdrw
drwxr-xr-x 9 mirco users 400 Mar 30 23:12 entwicklung
drwx------ 2 root root 72 Oct 27 21:38 floppy
drwxr--r-- 18 root root 4096 Jan 1 1970 windows_c
drwxr--r-- 11 root root 16384 Jan 1 1970 windows_d
drwxr--r-- 9 root root 8192 Jan 1 1970 windows_e
drwxr--r-- 10 root root 16384 Jan 1 1970 windows_j

_________________
Athlon XP+ 2400 Thunderbird,
Abit NF7
1536MB DDR (266),
Radeon 9200 (256mb)
gentoo 2.6.19-r5
Back to top
View user's profile Send private message
ro
Apprentice
Apprentice


Joined: 28 Mar 2003
Posts: 289

PostPosted: Tue Apr 05, 2005 3:18 pm    Post subject: Reply with quote

am besten ein eintrag in der /etc/fstab

meine sieht zB so aus:
Code:

/dev/hda6               /mnt/daten      vfat           uid=1000,gid=100,user,auto      0 0
/dev/sda2               /mnt/extern     vfat           uid=1000,gid=100,umask=000,user,noauto  0 0


wobei 1000 die user id meines benutzernamens ist, und 100 die group id der gruppe users ist. das kannst du natürlich ändern, sodaß mehrere zugriffe haben (siehe umask), aber das geht dann nur für die gesamte partition, Unterverzeichnisse/einzelne Dateien lassen sich nicht ändern.
_________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Back to top
View user's profile Send private message
tuxfan
Apprentice
Apprentice


Joined: 14 Feb 2003
Posts: 257

PostPosted: Thu Apr 14, 2005 6:27 pm    Post subject: Reply with quote

ro wrote:
am besten ein eintrag in der /etc/fstab

meine sieht zB so aus:
Code:

/dev/hda6               /mnt/daten      vfat           uid=1000,gid=100,user,auto      0 0
/dev/sda2               /mnt/extern     vfat           uid=1000,gid=100,umask=000,user,noauto  0 0



Also wenn du umask=000 setzt kannst du dir uid=1000,gid=100 IMO sparen, denn du gibst ja JEDEM user volle Rechte.
Back to top
View user's profile Send private message
Yonathan
l33t
l33t


Joined: 05 Jan 2005
Posts: 662

PostPosted: Thu Apr 14, 2005 6:28 pm    Post subject: Reply with quote

super. das werde ich mal ausprobieren :)

vielen dank!!!

yona
_________________
Athlon XP+ 2400 Thunderbird,
Abit NF7
1536MB DDR (266),
Radeon 9200 (256mb)
gentoo 2.6.19-r5
Back to top
View user's profile Send private message
runtema
n00b
n00b


Joined: 03 Feb 2005
Posts: 37
Location: Germany

PostPosted: Thu Apr 21, 2005 8:40 am    Post subject: Reply with quote

tuxfan wrote:
ro wrote:
am besten ein eintrag in der /etc/fstab

meine sieht zB so aus:
Code:

/dev/hda6               /mnt/daten      vfat           uid=1000,gid=100,user,auto      0 0
/dev/sda2               /mnt/extern     vfat           uid=1000,gid=100,umask=000,user,noauto  0 0



Also wenn du umask=000 setzt kannst du dir uid=1000,gid=100 IMO sparen, denn du gibst ja JEDEM user volle Rechte.


Bitte nicht vergessen:

Code:

shortname=winnt,codepage=850,iocharset=iso8859-15


in den Mountoptionen für Win XP einzusetzen, sonst wird es nichts mit langen dateinamen und umlauten...
_________________
Problems are chances to show, what you can do (Duke Ellington)
Back to top
View user's profile Send private message
Yonathan
l33t
l33t


Joined: 05 Jan 2005
Posts: 662

PostPosted: Thu Apr 21, 2005 9:39 pm    Post subject: Reply with quote

runtema wrote:
Bitte nicht vergessen:

Code:

Code:
shortname=winnt,codepage=850,iocharset=iso8859-15



in den Mountoptionen für Win XP einzusetzen, sonst wird es nichts mit langen dateinamen und umlauten...


und wie macht man das???
_________________
Athlon XP+ 2400 Thunderbird,
Abit NF7
1536MB DDR (266),
Radeon 9200 (256mb)
gentoo 2.6.19-r5
Back to top
View user's profile Send private message
Deever
Veteran
Veteran


Joined: 06 Jul 2002
Posts: 1354
Location: Zürich / Switzerland

PostPosted: Thu Apr 21, 2005 10:59 pm    Post subject: Reply with quote

Yonathan wrote:
und wie macht man das???

So wie ers geschrieben hat:
Code:
shortname=winnt,codepage=850,iocharset=iso8859-15

Gruß,
/dev
Back to top
View user's profile Send private message
Yonathan
l33t
l33t


Joined: 05 Jan 2005
Posts: 662

PostPosted: Thu Apr 21, 2005 11:27 pm    Post subject: Reply with quote

damit meinte ich:

wo muss ich das eintragen??? in die grub.conf oder wo???

lg.

yona
_________________
Athlon XP+ 2400 Thunderbird,
Abit NF7
1536MB DDR (266),
Radeon 9200 (256mb)
gentoo 2.6.19-r5
Back to top
View user's profile Send private message
Deever
Veteran
Veteran


Joined: 06 Jul 2002
Posts: 1354
Location: Zürich / Switzerland

PostPosted: Thu Apr 21, 2005 11:33 pm    Post subject: Reply with quote

Yonathan wrote:
wo muss ich das eintragen??? in die grub.conf oder wo???
Na, in der fstab, wo denn sonst? Übrigens, deine "?"-Taste prellt, bitte reparieren...

SCNR,
/dev
Back to top
View user's profile Send private message
marc
Apprentice
Apprentice


Joined: 13 Jan 2003
Posts: 290

PostPosted: Fri Apr 22, 2005 6:08 am    Post subject: Reply with quote

http://www.pro-linux.de/t_system/vfat-tipps.html

Gut erklärt wie ich finde.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum