On 01/24/2012 02:21 PM, gene heskett wrote:
> I probably have 5 or 7 tabs open, su- at any one time.  Biggest problem
> then is that x belongs to gene, and root collects megabytes of x errors
> when root forgets to use vim and tries to use gedit.
>    
Gene, is this on the pclos machine, or on the Ubuntu box?  On my Ubuntu 
box here at work, when I "su -", $DISPLAY is automagically set to :0 and 
I can bring up gedit as root with no problems.
> - in screen utility I also create first text screen for use as root.
>> Others are named by function or remote host.
>>
>> If you are going to rename or change UID or GID it's best to do it in
>> text terminal, i.e. not under KDE or Gnome for yourself as you'll pull
>> the rug under your feet. You could create a new user with desired
>> UID/GID in GUI but you'll need to make different login account name. The
>> easiest IMO is to do the following:
>>
>> - Assuming you are at GUI login prompt, don't login, use Ctrl-Alt-F1 to
>> go to text mode terminal,
>>
>> - login and become root with 'sudo su -' (ubuntu and some other distros)
>>
>> - edit /etc/passwd to change UID and GID
>> <user>:x:1000:1000:user name,,,:/home/<user>:/bin/bash
>>             ^^   ^^
>>
>> - run command pwconv
>>
>> - edit /etc/group
>> <user>:x:1000:
>>             ^^
>> - run
>> chown -R<user>.<user>  /home/<user>
>> to change ownership to all files in users home directory.
>>
>> - Reboot and you should be able to login as a user with new UID/GID.
>>      
> That makes a lot of sense, doing it that way, but since nfs is working now,
> I'll likely skip it.  Once I get the forward path in nfs set, then I can
> redirect pcb-gcodes output files directly to the
> ~/gene/emc2/nc_files/project_subdir on the milling machine, and only be
> missing one thing.
>    
I'd still redo the UID/GID's even with NFS.  If your accounts have the 
same UID/GID's you don't have to fudge around with directory 
permissions, and it makes your NFS more secure.
>
> Cheers, Gene
>    
Mark


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to