HomeHome  PortalPortal  FAQFAQ  SearchSearch  RegisterRegister  Log in  
openFate
openFATE - openSUSE feature tracking
Similar topics
Latest topics
» Difference between 42.2 and 42.1
by findoctr Thu Dec 15, 2016 7:53 pm

» openSUSE Leap 42.1 ?
by findoctr Fri Feb 05, 2016 8:09 pm

» Happy Turkey Day
by findoctr Thu Nov 26, 2015 1:45 pm

» Happy 4th of July!
by bozo Sat Jul 04, 2015 12:56 pm

» It's been a while ...
by bozo Mon Feb 23, 2015 8:34 pm

» Mondo chillers
by bozo Wed Feb 18, 2015 5:11 am

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
IRC Channel
You can also find us on IRC's freenode.net as #suseunbound.

Share | 
 

 id tells me "id: 1000: no such user"

View previous topic View next topic Go down 
AuthorMessage
krichter1
Newt
avatar

Posts : 2
Join date : 2014-04-06

PostSubject: id tells me "id: 1000: no such user"   Sun Apr 06, 2014 6:41 pm

Quick question: How can the following invokation of id command fail?
<code>
$ id -n -u 1000
id: 1000: no such user
</code>
<code>
$ id
uid=1000(richter) gid=100(users) groups=100(users)
</code>
Works well on Ubuntu 13.10 and should according to manpage?

All the best,
Kalle
Back to top Go down
bozo
Admin
avatar

Posts : 402
Join date : 2010-02-23
Location : Way out in the sticks in the Gold Country of California

PostSubject: Re: id tells me "id: 1000: no such user"   Sun Apr 06, 2014 8:24 pm

Greetings, and welcome to the forum!

As far as I can tell, your command fails because id wants a username, not a UID. So the command didn't really fail, it told you that there was not a user with the username "1000". The command id with no options is returning the logged in user's information. I don't know why it works in Ubantu. In Suse, entering id -n returns id: cannot print only names or real IDs in default format. Perhaps it was changed in one or the other distro for security reasons or something.

If what you're trying to do is find out the username associated with a known UID, the only way I know is to use Yast>Security and Users>User and Group Management. Or from the command line, look into /etc/passwd using cat or vi or another text editor. Users are at the bottom (of mine, at least). If you have a lot of users, this could be a pain, maybe figure out a script with grep or something.

Hope this helps, and let us know if it did. If it didn't, come on back and we'll keep working on it.

Again, welcome to the group.

 clown

_________________
"The trouble with quotes on the internet is that you never know if they are genuine." - Abraham Lincoln
Back to top Go down
krichter1
Newt
avatar

Posts : 2
Join date : 2014-04-06

PostSubject: Re: id tells me "id: 1000: no such user"   Mon Apr 07, 2014 12:32 pm

Hi bozo,
Thanks for your reply. The behavior I expected doesn't correpond to the manpage which I misunderstood and the behavior is also not the one I described on Ubuntu (checked bash_history and saw that I used id command with varitables with wrong content), i.e. id does was it is supposed to do.
Back to top Go down
Sponsored content




PostSubject: Re: id tells me "id: 1000: no such user"   

Back to top Go down
 
id tells me "id: 1000: no such user"
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» New user extenstion for browser related testing.
» New user extension regarding wait and traverse in browser.
» User-Extension Issue
» Selenium Rc : how to do multi user testing using selenium?
» Attempting to drop down value using Selenium IDE user extension

Permissions in this forum:You cannot reply to topics in this forum
SUSEUnbound :: Help Section :: Software-
Jump to: