Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Failing to add a new user to Unraid Plus

Featured Replies

Finally took the plunge and upgraded to the Plus version :)

 

However I'm trying to add new user accounts so I can put some more protection on the user shares. I fill in the username and password boxes and hit add, but the screen just refreshes and the new user isn't there....

 

I get this in my syslog:

 

Aug 12 22:13:30 Tower emhttp: shcmd (56): useradd -d / -g jhayes -s /bin/false -u 1000 jhayes
Aug 12 22:13:30 Tower emhttp: _shcmd: shcmd (56): exit status: 4
Aug 12 22:13:30 Tower emhttp: shcmd (57): chpasswd <<< jhayes:"*****"
Aug 12 22:13:30 Tower emhttp: _shcmd: shcmd (57): exit status: 1
Aug 12 22:13:30 Tower emhttp: shcmd (58): smbpasswd -L -s -a jhayes <<< "*****"$'\n'"*****"
Aug 12 22:13:30 Tower emhttp: _shcmd: shcmd (58): exit status: 1
Aug 12 22:13:30 Tower emhttp: shcmd (59): cp /etc/passwd /etc/samba/private/smbpasswd /boot/config

 

Any clues? I find it a bit odd that nothing happens including no error messages or anything.

 

I'm running 4.5.4.

 

Justin

  • Author

Ahhhh think I might have figured it out  ;)

 

Tried to run unraid's command manually:

 

root@Tower:/boot/config# useradd -d / -g jhayes -s /bin/false -u 1000 jhayes

 

and got this error:

 

useradd: uid 1000 is not unique

 

Checking /etc/password it looks like I (or unMenu) added an istat user account with the same uid:

 

istat:!:1000:100::/home/istat:

 

I guess unraid just starts at 1000 so I need to pick something different for istat?

  • Author

Hmmm looking at the threads for istat via unmenu I can't seen anything telling me I should be creating that user account. Perhaps I added it in before it was available in unmenu and need to remove it.

 

Will give that a go.....

  • Author

Nope removed it and rebooted and the user has come back, so I guess the istat package in unmenu is putting that user back in on reboot.

 

So I have to choose whether to have istat or more user accounts?

  • Author

Figured I'd try removing the auto-install of istat from unmenu, and that would stop the istat user being created.

 

But it still comes back every reboot  ???

On reboot, unRAID uses the copies of the password files stored on the flash drive as a base. You need to perform the following commands AFTER you remove the iSTAT user. You even quoted it in the log section you provided.  :)

 

To properly delete a user, you should always perform the following steps together:

smbpasswd -x username

userdel username

 

 

cp /etc/passwd /etc/samba/private/smbpasswd /boot/config

  • Author

Hehe yeah thanks - got there in the end. Finally stopped istat setting up it's user so I could create my samba users. Then turned istat install back on :)

 

Might be worth whoever maintains the istat package changing the install script to select a uid under 1000.....

Hehe yeah thanks - got there in the end. Finally stopped istat setting up it's user so I could create my samba users. Then turned istat install back on :)

 

Might be worth whoever maintains the istat package changing the install script to select a uid under 1000.....

Actually, the script does not specify any ID.

 

PACKAGE_INSTALLATION /usr/sbin/useradd istat 2>/dev/null

PACKAGE_INSTALLATION /usr/sbin/groupadd istat 2>/dev/null

The problem you are describing is a bug in unRAID and its handling of user ID 1000.

See here: http://lime-technology.com/forum/index.php?topic=7072.0

  • Author

Ahh interesting Joe thanks. I noticed that the istat package wasn't specifying a user. Is there a special reason why the first one gets allocated 1000?

 

Hopefully it'll be fixed in v5 then :D

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.