This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

NT_STATUS_NO_SUCH_USER

CIFS/SMB network sharing.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
ku-gew
Advanced User
Advanced User
Posts: 172
Joined: 29 Nov 2012 09:02
Location: Den Haag, The Netherlands
Status: Offline

NT_STATUS_NO_SUCH_USER

Post by ku-gew »

Hello,
I configured several users in my N4F box (9.1.0.1.636, embedded) and I can successfully log in via SSH and, as test, FTP, but smb is still unable to give me access to the shares.
The output of a "Full" log is:

Code: Select all

Apr 29 00:44:30	hp-n40l	smbd[4349]: check_ntlm_password: Authentication for user [xxx -> [xxx] FAILED with error NT_STATUS_NO_SUCH_USER
Apr 29 00:44:30	hp-n40l	smbd[4349]: [2013/04/29 00:44:30.097807, 2] auth/auth.c:319(check_ntlm_password)
The previous 5xx N4F version, installed Full on a HD, was fine.
I downloaded the full config to file, compared to the old one, and I see few differences.
What should I look for? I know I disabled ACLs in ZFS because I want to keep only basic Unix permissions and that I mapped the users as staff instead of as guests as main group.

Here my config:

Code: Select all

	<samba>
		<netbiosname>HP-N40L</netbiosname>
		<workgroup>WORKGROUP</workgroup>
		<serverdesc>NAS4Free Server</serverdesc>
		<security>user</security>
		<maxprotocol>NT1</maxprotocol>
		<guestaccount>ftp</guestaccount>
		<maptoguest>Never</maptoguest>
		<localmaster>yes</localmaster>
		<rcvbuf>64240</rcvbuf>
		<sndbuf>64240</sndbuf>
		<storedosattributes/>
		<largereadwrite/>
		<aiorsize>4096</aiorsize>
		<aiowsize>4096</aiowsize>
		<aiowbehind/>
		<enable/>
		<if/>
		<pwdsrv/>
		<winssrv/>
		<timesrv>yes</timesrv>
		<doscharset>CP437</doscharset>
		<unixcharset>UTF-8</unixcharset>
		<loglevel>3</loglevel>
		<usesendfile/>
		<share>
			<uuid>82bb3649-97a3-4370-9697-789c7c3cfe53</uuid>
			<name>shared_folder</name>
			<path>/storage/shared_folder/</path>
			<comment>Private data</comment>
			<browseable/>
			<inheritpermissions/>
			<recyclebin/>
			<hidedotfiles/>
			<shadowcopy/>
			<shadowformat>auto-%Y%m%d-%H%M%S</shadowformat>
			<hostsallow/>
			<hostsdeny/>
		</share>
		<auxparam>recycle:keeptree = yes</auxparam>
		<auxparam>recycle:versions = yes</auxparam>
		<auxparam>recycle:exclude = *.mp?,*.m4v</auxparam>
		<auxparam>recycle:maxsize = 10000000</auxparam>
	</samba>
Concerning the user, I have:

Code: Select all

		<user>
			<uuid>__UID__</uuid>
			<login>xxx</login>
			<fullname>Myname</fullname>
			<password>pass</password>
			<shell>bash</shell>
			<primarygroup>20</primarygroup>
			<group>1000</group>
			<group>5</group>
			<group>0</group>
			<homedir>/mnt/Data/</homedir>
			<id>501</id>
			<userportal/>
		</user>
Compared to the previous installation, users have userids in the 50x range instead of the 100x range. Does it matter?
HP Microserver N40L, 8 GB ECC, 2x 3TB WD Red, 2x 4TB WD Red
XigmaNAS stable branch, always latest version
SMB, rsync

ku-gew
Advanced User
Advanced User
Posts: 172
Joined: 29 Nov 2012 09:02
Location: Den Haag, The Netherlands
Status: Offline

Re: NT_STATUS_NO_SUCH_USER

Post by ku-gew »

Seems incredible, but the user ids must be >=1000 to be accepted by samba.
I downloaded the configuration, changed the ids, reloaded it, rebooted, changed owner of the folders using the terminal, now it works.
HP Microserver N40L, 8 GB ECC, 2x 3TB WD Red, 2x 4TB WD Red
XigmaNAS stable branch, always latest version
SMB, rsync

Post Reply

Return to “CIFS/SMB (Samba)”