Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] [CIFS] mount geht nur als Root
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
Finswimmer
Moderator
Moderator


Joined: 02 Sep 2004
Posts: 5467
Location: Langen (Hessen), Germany

PostPosted: Thu Jun 10, 2010 8:07 pm    Post subject: [Solved] [CIFS] mount geht nur als Root Reply with quote

Hi,

fstab:
Code:
//mediacenter/fotos     /mnt/fotos              cifs            user,exec,auto,rw,guest,iocharset=utf8 0 0


Als Root geht "mount /mnt/fotos".
Als User:
Code:
$mount /mnt/fotos/
mount error(1): Operation not permitted
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)


smb.conf auf Server:
Code:
[Fotos]
path = /mnt/raid/fotos
guest ok = Yes
read only = no


Danke
Tobi
_________________
Bitte auf Rechtschreibung, korrekte Formatierung und Höflichkeit achten!
Danke


Last edited by Finswimmer on Thu Jun 10, 2010 8:40 pm; edited 1 time in total
Back to top
View user's profile Send private message
69719
l33t
l33t


Joined: 20 Sep 2004
Posts: 865

PostPosted: Thu Jun 10, 2010 8:31 pm    Post subject: Reply with quote

1. chmod u+s /usr/bin/mount.cifs /usr/bin/umount.cifs
2. mountpoint muss dem nutzer der mounten will gehören
3. user als option in der /etc/fstab angeben
Back to top
View user's profile Send private message
Finswimmer
Moderator
Moderator


Joined: 02 Sep 2004
Posts: 5467
Location: Langen (Hessen), Germany

PostPosted: Thu Jun 10, 2010 8:39 pm    Post subject: Reply with quote

Super, vielen Dank :)
_________________
Bitte auf Rechtschreibung, korrekte Formatierung und Höflichkeit achten!
Danke
Back to top
View user's profile Send private message
Hollowman
Guru
Guru


Joined: 19 Apr 2007
Posts: 584

PostPosted: Sat Jan 15, 2011 1:58 pm    Post subject: Reply with quote

Hallo

Ich muss das nochmal hoch holen.

Wenn ich das mit dem chmod mache, bekomme ich folgende Meldung:

This mount.cifs program has been built with the ability to run as a setuid root program disabled.
mount.cifs has not been well audited for security holes. Therefore the Samba team does not recommend installing it as a setuid root program.

Ich hab das komplette samba Paket installiert.

Was kann ich da machen?

Sebastian
Back to top
View user's profile Send private message
72_6f_6c_61_6e_64
Guru
Guru


Joined: 16 Nov 2009
Posts: 438
Location: 39° 6′ 18″ N, 76° 44′ 29″ W

PostPosted: Tue Jan 25, 2011 10:26 am    Post subject: Reply with quote

Ich hab das selbe Problem

bei mir war das aber unter /sbin/mount.cifs und /sbin/umount.cifs

LG Roland
_________________
Man gewöhnt sich an allem, sogar am Dativ.
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3688
Location: Hamburg

PostPosted: Tue Jan 25, 2011 12:44 pm    Post subject: Reply with quote

Also, am schnellsten und bequemsten ist's mit sudo zu machen, denn die Berechtigungen des mount Befehl würde ich nicht ändern wollen.
Back to top
View user's profile Send private message
72_6f_6c_61_6e_64
Guru
Guru


Joined: 16 Nov 2009
Posts: 438
Location: 39° 6′ 18″ N, 76° 44′ 29″ W

PostPosted: Tue Jan 25, 2011 1:32 pm    Post subject: Reply with quote

Gute Idee danke, jetzt gehts

LG Roland
_________________
Man gewöhnt sich an allem, sogar am Dativ.
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