Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mount using random user
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
jonfr
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1008
Location: Denmark

PostPosted: Mon Jul 08, 2013 1:38 am    Post subject: mount using random user Reply with quote

For some strange reason, netmount is now using random user when I mount a samba share on my FreeBSD server. This is what I get when I use ls -l command.

Code:
drwxr-xr-x  5 1001 1001    0 júl  8 02:58 www


I have deleted the user in question in order to try and get rid of this error. It doesn't work. This should be root:root as user and group if everything was correct. I have not seen this error before and I am not sure how to fix it.

Here is the config line that I am using in fstab.

Code:
//192.168.1.2/www       /mnt/www         cifs           rw,users,passwd=*,username=nobody                       0 0


The username=nobody used to be "guest". Changing this did not work at all.

Thanks for the help.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Mon Jul 08, 2013 1:48 am    Post subject: Reply with quote

root:root when making remote connection? This certainly is unsupported by common sense. Maybe it is also unsupported now by FreeBSD/CIFS. Why don't you fix your ownerships first.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
jonfr
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1008
Location: Denmark

PostPosted: Mon Jul 08, 2013 2:37 am    Post subject: Reply with quote

The ownership on the folder while unmounted is root:root. It changes once it is mounted. I do not know why that is. This is client side problem, not a FreeBSD server issue.
Back to top
View user's profile Send private message
vaxbrat
l33t
l33t


Joined: 05 Oct 2005
Posts: 731
Location: DC Burbs

PostPosted: Mon Jul 08, 2013 2:40 am    Post subject: cifs and credentials Reply with quote

Agree with Jaglover. This is cifs telling you to watch out for security on network mounts. The first gotcha is relying on guest/anonymous for your credentials. One of the standard things done with hardening exercises is to make sure that guest and anonymous accounts are deleted or disabled. If you are going to have a wide open share between systems on your network, create a username or re-use one like apache which you may already be using for web services.

If you want users to get access to a cifs share, you may want their credentials to be used instead. Look into pam_mount if that makes sense.
Back to top
View user's profile Send private message
jonfr
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1008
Location: Denmark

PostPosted: Mon Jul 08, 2013 2:47 am    Post subject: Reply with quote

This is my local network, there is hardly anyone on it but me. I am not too bothered with setting up a network user set-up for my local network. If I need a user, I need at least connect to my local user.
Back to top
View user's profile Send private message
vaxbrat
l33t
l33t


Joined: 05 Oct 2005
Posts: 731
Location: DC Burbs

PostPosted: Thu Jul 11, 2013 3:29 am    Post subject: okay then Reply with quote

I just throw myself into the smbpasswd file for the home stuff
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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