Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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??
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.