Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mounta in nätverksenhet?
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
Ulf-Kenneth
n00b
n00b


Joined: 16 Jun 2004
Posts: 34
Location: Umeå / Sweden

PostPosted: Sun Jun 20, 2004 4:13 pm    Post subject: mounta in nätverksenhet? Reply with quote

Jag har en brandvägg/server med clarkconnect 2.2 (RH9).
På den har jag en disk som jag vill ska vara tillgänglig på min gentoo-klient.
Jag vill alltså mounta in /mnt/hdb från cc till /home/user1/cc1 på gentoo-klienten.
Förslag på lämpligt sätt?
Back to top
View user's profile Send private message
aridhol
Guru
Guru


Joined: 20 Jan 2003
Posts: 509
Location: Stockholm, Sweden

PostPosted: Sun Jun 20, 2004 7:38 pm    Post subject: Reply with quote

Vad kör du för Kärna? 2.4 eller 2.6

Om du kör 2.6 kan du exempelvis inte sköra shfs som är att mounta via ssh på ett mycket enkelt sätt utan att behöva göra något speciellt på severn.

Annars skulle jag nog föreslå NFS.
_________________
72 of Pitcairn Islands 49 inhabitants use Seti@Home
"If you buy a DVD you have a copy. If you want a backup copy you buy another one."
"Anyone who is capable of getting themselves made President should on no account be allowed to do the job."
Back to top
View user's profile Send private message
Ulf-Kenneth
n00b
n00b


Joined: 16 Jun 2004
Posts: 34
Location: Umeå / Sweden

PostPosted: Mon Jun 21, 2004 7:52 pm    Post subject: Reply with quote

shfs verkar kanonbra..
Jag har installerat shfs-0.35 och har nästan fått det att fungera som jag vill.
När jag connectar som root fungerar det som det ska men som user blir det:
Code:
Operation not permitted

Jag kan logga in via ssh så det är inte problemet.

Felet kan säkert lösas med:
Quote:
If you would like all users to be able to mount (umount) remote dirs using shfs, set the suid bit on /usr/bin/shfsmount and shfsumount. Security checks are similar to smbmount( 8 ).

Vad menas med detta?
Back to top
View user's profile Send private message
aridhol
Guru
Guru


Joined: 20 Jan 2003
Posts: 509
Location: Stockholm, Sweden

PostPosted: Mon Jun 21, 2004 8:13 pm    Post subject: Reply with quote

Det menas att av säkerhetsskäl tillåts bara root att mounta enheter. Om du vill kunna göra det som vanlig användare måste du sätta dit en suid-bit.

Code:
chmod u+s /usr/bin/shfsmount
chmod u+s /usr/bin/shfsumount.

_________________
72 of Pitcairn Islands 49 inhabitants use Seti@Home
"If you buy a DVD you have a copy. If you want a backup copy you buy another one."
"Anyone who is capable of getting themselves made President should on no account be allowed to do the job."
Back to top
View user's profile Send private message
Ulf-Kenneth
n00b
n00b


Joined: 16 Jun 2004
Posts: 34
Location: Umeå / Sweden

PostPosted: Tue Jun 22, 2004 4:35 pm    Post subject: Reply with quote

Det kanske är bäst om bara root får mounta.

När jag kör
Code:
shfsmount user1@192.168.1.1:/mnt/hdb /home/user1/cc1

som root så ändras rättigheterna så att bara root kan läsa och skriva i katalogen cc1 och dess underkataloger.
Mountar jag som user1 så funkar det fint.
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