[opensuse] How to set UID for the user when installing oS 11.x or 12.1?
Hello: The subject line says it: I would like to set the user ID for the user I set during installation. The installer would set it to 1000 but I want a different UID. How can I do it? Also, how can I set other user properties, as groups, password things during installation? Thanks, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hello:
The subject line says it: I would like to set the user ID for the user I set during installation. The installer would set it to 1000 but I want a different UID. How can I do it? Also, how can I set other user properties, as groups, password things during installation? I can't remember exactly but i think there are 3 tabs on the User set up, i
On Monday 21 Nov 2011 15:25:16 Istvan Gabor wrote: think if you click the middle tab, it lets you change the UID.
Thanks,
Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
2011. november 21. 16:02 napon ianseeks
Hello:
The subject line says it: I would like to set the user ID for the user I set during installation. The installer would set it to 1000 but I want a different UID. How can I do it? Also, how can I set other user properties, as groups, password things during installation? I can't remember exactly but i think there are 3 tabs on the User set up, i
On Monday 21 Nov 2011 15:25:16 Istvan Gabor wrote: think if you click the middle tab, it lets you change the UID.
Thanks. Yes, in YaST, among the user setting and group settings. Unfortunately during installation there is no such an option. You can only change the password encryption method and authentication method. It was possible to change user ID in pre suse 10 versions, then it was removed, I don't know why. Since my user ID is not 1000, every time when I install a new system I have to create a fake user before creating my own user account. If anyone has an idea how to trick this one, please write it. Thanks again, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Istvan Gabor wrote:
Since my user ID is not 1000, every time when I install a new system I have to create a fake user before creating my own user account.
If anyone has an idea how to trick this one, please write it.
Have you tried changing the ID after the system is up & running? All you have to do is go into Yast > Security and Users to change the uid. You can do that on the Details tab. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Mon, Nov 21, 2011 at 04:51:33PM -0500, James Knott wrote:
Istvan Gabor wrote:
Since my user ID is not 1000, every time when I install a new system I have to create a fake user before creating my own user account.
If anyone has an idea how to trick this one, please write it.
Have you tried changing the ID after the system is up & running? All you have to do is go into Yast > Security and Users to change the uid. You can do that on the Details tab.
Or don't create a user as part of the install workflow at all. In this case you get a warning which you can ignore as you know you'll create a users fitting your after your first login to the installed system. Lars -- Lars Müller [ˈlaː(r)z ˈmʏlɐ] Samba Team SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany
2011. november 21. 22:58 napon Lars Müller
On Mon, Nov 21, 2011 at 04:51:33PM -0500, James Knott wrote:
Istvan Gabor wrote:
Since my user ID is not 1000, every time when I install a new system I have to create a fake user before creating my own user account.
If anyone has an idea how to trick this one, please write it.
Have you tried changing the ID after the system is up & running? All you have to do is go into Yast > Security and Users to change the uid. You can do that on the Details tab.
Or don't create a user as part of the install workflow at all. In this case you get a warning which you can ignore as you know you'll create a users fitting your after your first login to the installed system.
Thanks! I did not know that it was possible not to create a user account during install. Probably this is the solution I need. I will try it. Thanks again, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
2011. november 21. 22:51 napon James Knott
Istvan Gabor wrote:
Since my user ID is not 1000, every time when I install a new system I have to create a fake user before creating my own user account.
If anyone has an idea how to trick this one, please write it.
Have you tried changing the ID after the system is up & running? All you have to do is go into Yast > Security and Users to change the uid. You can do that on the Details tab.
Thanks. No, since once (very long time ago) I read somewhere that it is not a good idea to change the UID of an existing user in linux/unix. But it might have changed since then. Is it safe to change user ID in a modern linux system? Thanks, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Istvan Gabor wrote:
No, since once (very long time ago) I read somewhere that it is not a good idea to change the UID of an existing user in linux/unix. But it might have changed since then. Is it safe to change user ID in a modern linux system?
According to the Help for that page, changing the UID will also update the files in the home directory, but not elsewhere. However, on an new system, a user is not likely to have files elsewhere. Even if they did, it's a simple matter to use find to find a users file and change the uid. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hello, On Mon, 21 Nov 2011, James Knott wrote:
Istvan Gabor wrote:
No, since once (very long time ago) I read somewhere that it is not a good idea to change the UID of an existing user in linux/unix. But it might have changed since then. Is it safe to change user ID in a modern linux system?
According to the Help for that page, changing the UID will also update the files in the home directory, but not elsewhere. However, on an new system, a user is not likely to have files elsewhere. Even if they did, it's a simple matter to use find to find a users file and change the uid.
I.o.w: you could just change the uid in /etc/passwd and run a find / -uid {OLD_UID} -exec chown {NEW_UID} {} + which may take quite a while depending on how large the fs is. Or you could tar up the fs (that users stuff) not using "--numeric-owner", change the uid in /etc/passwd and untar again without "--numeric-owner". Or similar stuff in that vein. I'd recommend setting the desired UID on creation though. And you can change that during install. At least you could on 11.2 (last I did a "install" with ;) -dnh, uid 500 for hysteric reasons (too many files to chown, no reason to change the uid, really), so there! ;) -- Hey, I can be a jerk to people I haven't slept with. I am that good. -- Dr. House -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
2011. november 22. 13:33 napon David Haller
Hello,
On Mon, 21 Nov 2011, James Knott wrote:
Istvan Gabor wrote:
No, since once (very long time ago) I read somewhere that it is not a good idea to change the UID of an existing user in linux/unix. But it might have changed since then. Is it safe to change user ID in a modern linux system?
According to the Help for that page, changing the UID will also update the files in the home directory, but not elsewhere. However, on an new system, a user is not likely to have files elsewhere. Even if they did, it's a simple matter to use find to find a users file and change the uid.
I.o.w: you could just change the uid in /etc/passwd and run a
find / -uid {OLD_UID} -exec chown {NEW_UID} {} +
which may take quite a while depending on how large the fs is.
To create a fake user looks easier for me. But the command still can be useful in other circumstances.
Or you could tar up the fs (that users stuff) not using "--numeric-owner", change the uid in /etc/passwd and untar again without "--numeric-owner". Or similar stuff in that vein.
I'd recommend setting the desired UID on creation though. And you can change that during install. At least you could on 11.2 (last I did a "install" with ;)
How? As I remember correctly I could not set it when I installed my 11.2 which I am still using. I installed 11.2 on several machines but can't remember an option that made it possible. Could you please give me a hint? Thanks, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Just wondering if anyone had the same problem, and posting for reference. Unfortunately as I have only two PCs available at the moment both in daily productive use, I cannot afford to do much pre-release testing, but yesterday I did upgrade one from 11.4 to 12.1. It is a dual-boot (with Windows XP) Dell Inspiron 1300 laptop. After upgrading, GRUB could not boot into openSUSE, with an error message like "could not mount root partition". The partition layout had not changed in the upgrade process, the root partition was /dev/sda6 on the only hard disc in the machine. GRUB's entry had been renamed to "12.1" so the upgrade obviously did *something* to GRUB. I apologise for not having saved menu.lst at various steps in the process, I was too keen to fix it. Which I did with the excellent Swerdna's instructions here: http://opensuse.swerdna.org/susebootfive.html#brokengrub ...which let me boot into 12.1 for the first time. Then I autoconfigured GRUB from scratch with YaST, and everything worked normally. Haro -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hello, On Tue, 22 Nov 2011, Istvan Gabor wrote:
2011. november 22. 13:33 napon David Haller
írta: I'd recommend setting the desired UID on creation though. And you can change that during install. At least you could on 11.2 (last I did a "install" with ;)
How? As I remember correctly I could not set it when I installed my 11.2 which I am still using. I installed 11.2 on several machines but can't remember an option that made it possible. Could you please give me a hint?
Sorry, I don't remember, that was when 11.2 was still quite new, a good 2 years(?) ago ... But what I do remember is that I, as always, looked through the "expert" options. I'm sure about: - 11.2 - install (not upgrade, it was later to 'dup'ped to 11.4, and cloned to another box though ;) - from DVD, IIRC i booted the unpacked DVD stuff (basically "/boot") via Grub from Harddisk, pointed syslinux/yast to the Image (or the mounted Image, don't remember, both works now IIRC) when it fails to find the media. It's not intuitive. Same on first reboot.[1] Anyway, it was the "DVD" install running from harddisk plus the ISO, fooled into thinking 'twas a DVD install. And the 'dup's got the ISO as primary Repo. I hope I get around to document the procedure this time around. I do seem to remember though, that that "uid" stuff was quite hidden away and maybe it was "add user" -> "change details" -> change uid or some such even deeper hidden in some menu. It was there though with 11.2 (32bit). Otherwise my user wouldn't have uid 500, and I distinctly remember changing that uid to 500 in Yast, and not editing /etc/passwd (not that I'd have a problem with the latter[2] ;). As I've got the 12.1 ISO on disk and plan to upgrade to it (though, again as: clone install to free partition, setup the ISO as install source and change all other repos to 12.1 too(!) and then do a 'zypper dup'), I still think I could boot from the unpacked /boot of the image and have a look where that option is hidden now. Don't hold your breath, though. I'm lazy. It might be I can't be a**** to do that till next year. Pleas and bribes might speed the process up. ;P -dnh [1] my last install from a burned DVD was 9.1 IIRC or even a 8.x ;P [2] do ~12 years of linux qualify me as "old geezer"? at 37yrs? I do feel quite old, much beyond my years, at times ;) Actually, I do envy you real old geezers, that have experience with pre, say, '84 computers, and esp. those with Unix experience in that respect. You are (by age) "much older geezers" than me. I feel young "at heart" generally, but old with computers, even though I started very late even for my age (got my first, an Amiga 500, at the age of 17?). But I learn quick, read documentation easily (cue the old getopt(3) manpage), and seem to have a knack for debugging. But the "just doesn't fit" feeling is quite irritating, and increasing year by year. *sigh* KDE? Always sucked. Gnome even more. Well, I get some joy out of making fun of KDE/Gnome users wrestling with whichever *new* *shiny* *best ever* version/feature of it[3]. *hrhrhr* Me, bitter? Gotta get more involved in WindowMaker though. [3] oh, I console them, but e.g. *cnr* to then punt mutt as a MUA too, when they are complaining about the "new", "shiny", "all better" kmail ... as usual since, ah, kmail, in ~1998 or so? I think I misseed the very first releases but those I tested were, ah, "not quite fit for my needs"[4] ... went with XFmail for some years, using mutt since 2001, with IIRC only 2 "required because of an update" changes to the configuration (and the "new" mutt told you what was wrong and what new option had "taken over"). [4] to put that in the most flattering form. Descriptions like u.{4}r c..p have definitely crossed my mind then and each time since when I tested that piece of software. It _has_ been a long time since I last tested that stuff and it's reported to me, by trustworthy sources, to be much much better than then. As mutt does exactly what I want and need I see no reason to switch and as I also prefer not to _need_ a working X ... Anyway, I haven't tested kmail in years. But when a wave of complaints rolls in over eg. this ML, it seems to suggest that version "2" needs a lot of work still. I'll gloat, but I'll try to be quiet. PS.: *oops* I did not intend to let this get this long! -- Disclaimer: I do not have an orbital mind control laser; you are free to post your own opinion, but be prepared to back it up, because I *will* call you on it if I think it's bullshit. That's how the Internet, and life, works. -- Mark 'Kamikaze' Hughes -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* Istvan Gabor
Yes, in YaST, among the user setting and group settings. Unfortunately during installation there is no such an option. You can only change the password encryption method and authentication method. It was possible to change user ID in pre suse 10 versions, then it was removed, I don't know why.
on 11.4 yast[2] --> Security and Users --> User and Group Management tab 1 add/edit --> enter information tab 2 adjust user_id as desired (and other information) on 12.1 I see the same pages on 11.2 I see the same pages -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535 @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Patrick Shanahan wrote:
* Istvan Gabor
[11-21-11 16:47]: Yes, in YaST, among the user setting and group settings. Unfortunately during installation there is no such an option. You can only change the password encryption method and authentication method. It was possible to change user ID in pre suse 10 versions, then it was removed, I don't know why.
on 11.4 yast[2] --> Security and Users --> User and Group Management tab 1 add/edit --> enter information tab 2 adjust user_id as desired (and other information)
on 12.1 I see the same pages
on 11.2 I see the same pages
Except during installation, I think. -- Per Jessen, Zürich (1.9°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 21/11/2011 22:45, Istvan Gabor a écrit :
Unfortunately during installation there is no such an option.
do you try *not* to use the "automatic configuration" tab (selected by default)? not tested jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
2011. november 22. 0:17 napon jdd
Le 21/11/2011 22:45, Istvan Gabor a écrit :
Unfortunately during installation there is no such an option.
do you try *not* to use the "automatic configuration" tab (selected by default)?
not tested
Yes, I always uncheck that box when I start installing a new system. I don't know if it makes any difference as I never tried to install the other way. Thanks, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (9)
-
David Haller
-
Haro de Grauw
-
ianseeks
-
Istvan Gabor
-
James Knott
-
jdd
-
Lars Müller
-
Patrick Shanahan
-
Per Jessen