LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 10-10-2007, 09:39 AM   #1
cicca82
LQ Newbie
 
Registered: Oct 2007
Posts: 13

Rep: Reputation: 0
Unhappy mount samba


Hello All,

Description: I have 2 linux boxes and 1 windows.

I set samba.conf on linux box1(as samba server) and from windowsXP box (as samba client) I can see the shared folder. Now I'm trying to set linux box 2 (as samba client) so I can share the folder with command line:
mount -t smbfs -o username=xxx,password=xxx //hostname/var /mnt/var
and error - mount: unknown filesystem type 'smbfs'
I need to do something else??

linux box 2 is Fedora 7

thanks
cicca82
 
Old 10-10-2007, 09:55 AM   #2
miedward
Member
 
Registered: Feb 2007
Distribution: RHEL 4, SOLARIS 10
Posts: 91

Rep: Reputation: 15
try "-t cifs" instead of smb, the name was changed fairly recently.
 
Old 10-10-2007, 10:08 AM   #3
cicca82
LQ Newbie
 
Registered: Oct 2007
Posts: 13

Original Poster
Rep: Reputation: 0
Hi meidward,

with -t cifs it works but when you have a folder linked it will gives an error bash: cd: share: No such file or directory
lrwxrwxrwx 1 root root 6 2007-10-10 15:40 share -> /share

I need to set something else to access folder named share from windows I can access it normally.

Thanks lot
cicca
 
Old 10-11-2007, 08:12 AM   #4
miedward
Member
 
Registered: Feb 2007
Distribution: RHEL 4, SOLARIS 10
Posts: 91

Rep: Reputation: 15
If you can mount and read/write to files in the share on windows, then if you use the same username/password in Linux you should be okay to mount the files, but you still might have permission issues depending on how the share is defined.

When I did a mount as root using the command:
mount -t cifs -o username=xxx,password=xxx //servername/sharename ./mnt

It mounted the directory which appeared under "ls -l" as:
drwxrwx--- 21 root groupname 0 Aug 13 13:36 mnt

The share in the smb.conf looks like this

[sharename]
hide unreadable = yes
path = /real/path/to/share
valid users = xxx
writeable = yes
browseable = yes
create mask = 0770
directory mask = 0770
force group = groupname
public = no

I find it strange that your share shows up as a simlink. It should be a real directory as far as the file system is concerned.

In the above example, both root and members of groupname should be able to enter the share.
 
Old 10-12-2007, 04:56 AM   #5
cicca82
LQ Newbie
 
Registered: Oct 2007
Posts: 13

Original Poster
Rep: Reputation: 0
The directroy that I'm mounting is normal directroy but inside it has more directroys which some of them are hardlinked with others.

I need to access them. At the moment I'm login in with guest account as root rights. It is wrong? How can I create new user with root rights so can mount samba with it?

I'm using Fedora 7 and mounting with CIFS because SMBFS isn't supported.

Thanks lot
cicca82
 
Old 10-13-2007, 01:04 AM   #6
miedward
Member
 
Registered: Feb 2007
Distribution: RHEL 4, SOLARIS 10
Posts: 91

Rep: Reputation: 15
If you set up your samba share like the one i posted, and make your user a member of the group you force, you should be able to access the drive as a non-root user even if you mount it as root.

I am still not entirely sure I am understanding what you are trying to do, or what exactly is not working.
 
  


Reply

Tags
cifs, samba, smbfs


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
type smb unknown when trying to mount xp mount via samba jpantone Linux - Networking 19 11-28-2006 10:08 PM
Can I mount a local NTFS disc as SAMBA mount point? alek66 Linux - Networking 15 10-01-2006 11:02 AM
samba mount when not owner of mount point cotton213 Linux - General 1 08-04-2005 07:21 AM
Permissions on a samba mount of a samba mount rimcrazy Linux - Networking 0 04-15-2005 08:57 AM
Samba: Authenticate Linux-Clients in Samba Domain & Mount mule Linux - Software 0 12-10-2003 02:21 AM


All times are GMT -5. The time now is 07:07 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration