Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Ändra rättigheter?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Scandinavian
View previous topic :: View next topic  
Author Message
bosse
n00b
n00b


Joined: 10 Jun 2003
Posts: 39

PostPosted: Thu Jun 19, 2003 6:19 pm    Post subject: Ändra rättigheter? Reply with quote

Jag kör både windows och linux på samma maskin och behöver komma åt filer från båda systemen. Kan montera windows hårddisk så jag kommer åt de filer som ligger där men när jag försöker ändra rättigheter så att andra användare (inte bara root) får den tillgången så fungerar inte det. Har ändrat detta via KDE eftersom det är det enda sätt jag känner till. Jag markerar "enter" och "write" access men så fort jag tryckt OK och jag kollar "permissions" igen så har bara root access.
Det måste finnas ett kommandoradssätt att lösa detta på...
Back to top
View user's profile Send private message
Roxxor
Apprentice
Apprentice


Joined: 04 Jun 2003
Posts: 225
Location: Stockholm, Sweden

PostPosted: Thu Jun 19, 2003 6:48 pm    Post subject: Reply with quote

usermod -G users,wheel username
Ersätt username med kontonamnet.

Nu kan du su:a till root som en vanlig användare.
Back to top
View user's profile Send private message
ozt
Apprentice
Apprentice


Joined: 13 Dec 2002
Posts: 212
Location: Stockholm

PostPosted: Thu Jun 19, 2003 7:11 pm    Post subject: Reply with quote

*humma lite*

Du säger att du ändrat det bara via KDE. Betyder det att du inte provat kommandot "chmod"? Vill du läsa på lite om chmod så skriv: "man chmod" i terminalen.
_________________
=:)
Back to top
View user's profile Send private message
Roxxor
Apprentice
Apprentice


Joined: 04 Jun 2003
Posts: 225
Location: Stockholm, Sweden

PostPosted: Thu Jun 19, 2003 7:15 pm    Post subject: Reply with quote

kom på en annan grej. Om du gör följande får du garanterad tillgång till windows-partitionen:
Öppna /etc/fstab och se till att windows-raden ser ut något i stil med:
/dev/hdaX /Windows/C vfat noatime,users,gid=users,umask=0002 0 0

Det viktiga är raden
Code:
noatime,users,gid=users,umask=0002

Kör du ntfs på windows-partitionen så lägg till ro:
Code:

noatime,ro,users,gid=users,umask=0002
Back to top
View user's profile Send private message
bosse
n00b
n00b


Joined: 10 Jun 2003
Posts: 39

PostPosted: Fri Jun 20, 2003 12:50 pm    Post subject: tack Reply with quote

chmod ordnade allt. Jag trodde det bara fungerade på filer och inte kataloger...
men nu vet jag.
tack
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Scandinavian 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