SUSEUnbound
Would you like to react to this message? Create an account in a few clicks or log in to continue.


 
HomeHome  PortalPortal  Latest imagesLatest images  SearchSearch  RegisterRegister  Log in  
openFate
id tells me "id: 1000: no such user" Fatelogo_small openFATE - openSUSE feature tracking
Similar topics
Latest topics
» Difference between 42.2 and 42.1
id tells me "id: 1000: no such user" Emptyby findoctr Thu Dec 15, 2016 7:53 pm

» openSUSE Leap 42.1 ?
id tells me "id: 1000: no such user" Emptyby findoctr Fri Feb 05, 2016 8:09 pm

» Happy Turkey Day
id tells me "id: 1000: no such user" Emptyby findoctr Thu Nov 26, 2015 1:45 pm

» Happy 4th of July!
id tells me "id: 1000: no such user" Emptyby bozo Sat Jul 04, 2015 12:56 pm

» It's been a while ...
id tells me "id: 1000: no such user" Emptyby bozo Mon Feb 23, 2015 8:34 pm

» Mondo chillers
id tells me "id: 1000: no such user" Emptyby 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.

 

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

Go down 
2 posters
AuthorMessage
krichter1
Newt
krichter1


Posts : 2
Join date : 2014-04-06

id tells me "id: 1000: no such user" Empty
PostSubject: id tells me "id: 1000: no such user"   id tells me "id: 1000: no such user" EmptySun 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
bozo


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

id tells me "id: 1000: no such user" Empty
PostSubject: Re: id tells me "id: 1000: no such user"   id tells me "id: 1000: no such user" EmptySun 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
Back to top Go down
krichter1
Newt
krichter1


Posts : 2
Join date : 2014-04-06

id tells me "id: 1000: no such user" Empty
PostSubject: Re: id tells me "id: 1000: no such user"   id tells me "id: 1000: no such user" EmptyMon 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





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

Back to top Go down
 
id tells me "id: 1000: no such user"
Back to top 
Page 1 of 1
 Similar topics
-
» registration
» Games you play..

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