Sponsored Content
Full Discussion: Samba Help
Operating Systems Linux Ubuntu Samba Help Post 303021067 by TBotNik on Friday 3rd of August 2018 11:55:47 AM
Old 08-03-2018
Command line only

Quote:
Originally Posted by Don Cragun
How can I explain?

You say you have syntax errors in your Samba configuration. You don't show us your Samba configuration files and you don't tell us what syntax errors you're getting. Therefore, all I can suggest is that you fix your syntax errors and try again.

If you would show us the exact errors that you are seeing and you would show us the files that are generating those errors, we might be able to help you further. Without seeing the actual errors you are receiving and the code/data that is producing those errors, there is absolutely no way that we can guess at what might be wrong!
Don Cragun,


No just issuing the command via cmd line/terminal and does not go! Cmd I'm using is:

Code:
mount -t cifs -o username=$user,password=$pwd //server/shares /media/myshare


According to the "man cifs" help pages this is correct syntax, but not working! Shows errors:
Code:
password specified twice, ignoring second
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

The specified "password" twice is because the password to this share is actually 'password'


Cheers!


OMR/TBNKI
 

8 More Discussions You Might Find Interesting

1. Programming

Samba 2.2.4

Has any setup samba 2.2.4 inside of unix ver 11.0, i am trying to mount a nfs mount on a w2k, and wxp box, and i was told that i had to upgrade to sambe 2.2.4, but the c compiler on ver 11.0 isnt ansii compatable, I could please use any help or directions on this matter... thanks (0 Replies)
Discussion started by: marvin51796
0 Replies

2. UNIX for Dummies Questions & Answers

Need Samba Help

Hi, I am very new to Unix, do know some RedHat linux. I am wanting to install samba on my unix machine. Not sure where to start, any help would be very much appreciated. Thanks, Chris Lewis (4 Replies)
Discussion started by: lewy33
4 Replies

3. UNIX for Dummies Questions & Answers

Why use Samba?

Hi, I am sorry I am total dummy in Unix. I am starting to explore a thing call "Samba". From my initial and rough finding, I think Samba is only useful in providing Print services to PC platform users. That is to say, The Unix machine which has Samba installed, is able to provide print... (3 Replies)
Discussion started by: champion
3 Replies

4. Solaris

SAMBA - where?

Greetings.. I need SAMBA to implement a backup strategy , the problem is that i cant find it anywhere... can u guys gimme a link to a sun compatilble version of samba ? thanx thanx htanx..... :rolleyes: (3 Replies)
Discussion started by: nEuRoMaNcEr
3 Replies

5. UNIX for Dummies Questions & Answers

Samba help

Hey. I have a question about adding users and maping theirs dirictorys. Main Folder | -User1 Folder -User2 Folder -User3 Folder ...... How can I add this users to have folders in the Main Folder ? any simple script? And I... (0 Replies)
Discussion started by: net555
0 Replies

6. UNIX for Dummies Questions & Answers

Samba

after creating username/passwd, vi /usr/lib/smb.conf file comment = dropoff location path = /tmp/droloc browsable = No available = yes public = no writable = yes printable = no create mode = 777 valid users = tjmann,palexander,bmartin,.... instead of using... (2 Replies)
Discussion started by: tjmannonline
2 Replies

7. UNIX for Dummies Questions & Answers

SAMBA

currently, we are using SAMBA for our ftp way. can SAMBA be encrypted aka sftp ? (2 Replies)
Discussion started by: lawsongeek
2 Replies

8. Solaris

samba issue: one samba share without password prompting and the others with.

Hi All, I've been trying to configure samba on Solaris 10 to allow me to have one share that is open and writable to all users and have the rest of my shares password protected by a generic account. If I set my security to user, my secured shares work just fine and prompt accordingly, but when... (0 Replies)
Discussion started by: ideal2545
0 Replies
MOUNT_SMBFS(8)						    BSD System Manager's Manual 					    MOUNT_SMBFS(8)

NAME
mount_smbfs -- mount a shared resource from an SMB file server SYNOPSIS
mount_smbfs [-N] [-o options] [-d mode] [-f mode] [-h] //[domain;][user[:password]@]server[/share] path DESCRIPTION
The mount_smbfs command mounts a share from a remote server using SMB/CIFS protocol. The options are as follows: -N Do not ask for a password. At run time, mount_smbfs reads the ~/Library/Preferences/nsmb.conf file for additional configuration parameters and a password. If no password is found, mount_smbfs prompts for it. -o Options passed to mount(2) are specified with the -o option followed by a comma separated string of options. See the mount(8) man page for possible options and their meanings. Additional options supported by the mount_smbfs are as follows: nobrowse Indicate to the Carbon subsystem that this volume is not to be displayed to the user. automounted Set flags on the mountpoint to indicate that the volume has been mounted by the automounter. nostreams Don't use NTFS Streams even if they are supported by the server. soft Make the mount soft. Fail file system calls after a number of seconds. nonotification Turn off using notifications for this volume. -f mode, -d mode Specify permissions that should be assigned to files and directories. The values must be specified as octal numbers. Default value for the file mode is taken from mount point, default value for the directory mode adds execute permission where the file mode gives read permission. Note that these permissions can differ from the rights granted by SMB server. -h Prints a help message, much like the SYNOPSIS above. //[domain;][user[password]@] server[/share] The mount_smbfs command will use server as the NetBIOS name of remote computer, user as the remote user name and share as the resource name on a remote server. Domain and/or password may be specified here. If user is omitted the logged in user id will be used. Omitting share is an error when mount_smbfs is run from the command line, otherwise a browsing dialogue is presented. path Path to mount point. FILES
nsmb.conf Keeps static parameters for connections and other information. See man nsmb.conf for details. EXAMPLES
This example shows the proper url to use to mount the share PUBLIC from the SMB server myserver : mkdir /smb/public mount -t smbfs //username:userpass@myserver/PUBLIC /smb/public This example shows the proper url to use to mount the share PUBLIC from the SMB server myserver as guest: mkdir /smb/public mount -t smbfs //guest:@myserver/PUBLIC /smb/public Note: You should always use the system mount command and never call mount_smbfs directly. SEE ALSO
mount(2), nsmb.conf(5), mount(8), umount(8) BUGS
Please report bugs to Apple. AUTHORS
Boris Popov <bp@butya.kz>, <bp@FreeBSD.org> FreeBSD March 10, 2000 FreeBSD
All times are GMT -4. The time now is 12:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy