Red Hat :: Create Multiple User At A Time In Rhel?
Feb 21, 2011How can i create multiple users at a time in rhel?
View 2 RepliesHow can i create multiple users at a time in rhel?
View 2 RepliesOur requirement is to create multiple user account with UID:-
/tmp/users.txt
rohit
guna
samsir
like this 100 user names in /tmp/users.txt file
/tmp/uid.txt
2001
3789
1000134
like this 100 UID's in /tmp/UID.txt file
The script should take input from both the files and create user account. for example user account rohit should have an UID of 2001 and user samsir should have an UID of 1000134.
I'm trying to write a script that will prompt the user for a username/password, then create that user/password in the right groups on all my machines. I know this is kind of a long way around to avoid a NIS server, but I like making my life more difficult.
This is what I have so far:
Code:
the script has 2 problems: The "if" functions return an error and do not compare the strings successfully. whatever password is entered does get applied properly and the user is unable to login
I'm looking for a program that will digitally display the time in three different cities - all showing at once. I don't care if it is a panel applet or stand-alone. I'm using Suse 11.3 and Gnome.
View 5 Replies View RelatedI'm trying to connect one computer to two others in an ad-hoc infrastructure.
[computer 1] ---- [computer 2] ---- [computer 3]
computer 2 is running Linux and has a single NIC wlan0. I want to it to connect to both computer 1 and computer 3 so each computer can talk to the other. No switch is available so it needs to be an ad-hoc setup.
[Code]...
get the values for the user time and system time for a process.i have tried getrusage to get values of ru_utime and ru_stimebut these don't seem to be correct
View 3 Replies View RelatedI've sifted through hundreds of Google results, but I cannot seem to find a tutorial or how-to for installing and configuring Postfix on Red Hat Enterprise for use with multiple domains. We have a web server serving four websites so far. Each of these websites has their own domain that they'll require email for.
View 3 Replies View Relatedwhy the user created at installation time is a Custom User instead of an Administrator.
View 4 Replies View RelatedI am running RHEL 5 on Vmware Workstation. That is i inslled Vmware Workstation on windows 7 and then in Vmware i installed RHEL 5 as a virtal machine. By mistake i made some wrong entry in my /etc/fstab file that is i was trying to automatically mount one folder under another folder. My syntax was wrong. So when i restart my RHEL 5 , at the boot time due to wrong entry in /etc/fstab system is giving file system error as follows:
Checking filesystems
fsck.ext3: Unable to resolve 'LABEL=/home/download'
fsck.ext3: Unable to resolve 'LABEL=/var/ftp/uploads'
[FAILED]
[code]....
I wanted to create an user but don't allow it to see the other user's home folder so I made chmod 0750 /home/folder and it worked fine so I went ahead and decided to completely forbid access to the root folder and I had the "great" idea to make chmod 0750 /, and now I'm having problems with wine and other applications, in example I used to have a folder in this address 209.239.114.51/mmgr but now it's giving me errors and if I try to run some applications I got error "There was an error creating the child process for this terminal"
View 9 Replies View RelatedI want to add 50 new users, not on the server yet I want to add them all to group Accounting - with 1 option, not user by user I want to setup a default password for them all, and have it say something like 'You must now change password or no access will be permitted' Any other options I also want to do once, not for each user?
View 3 Replies View RelatedThis netbook only has a user with non-administrative privs on it and root user but I do not have root's password.Is there a way that I can create a new administrative user of change the current user's group so that it can do sudo commands or have more privs?
View 1 Replies View RelatedI have just installed vsftpd on my debain server..I want to know how can I create a new user called mesk as FTP user and set a home page to some folder on my server? I tried this:
Code: Select allhtpasswd -c /etc/vsftpd/passwd mesk but got: cannot create file /etc/vsftpd/passwd.
i have rhel 5.2 and i want to create user using useradd command without creating user home directory and not throwing any warning/error about not creating any home directory.i have tried useradd -u "$NEW_UID" -g <gid> -d "/home/$1" -M "$1"where $1 is user name and $NEW_UID is i am calculating.it throws error as useradd: cannot create directory /home/$1which i dont want to come , how to prevent this?
View 1 Replies View RelatedCreate a rpm that installs a script like hello.sh into /root/bin with the permissions 755? I've tried a few ways with rpmbuild but no luck.
View 3 Replies View Relatedhow to create RAID-1 in rhel-5
View 2 Replies View RelatedI've been looking for this feature for months and couldn't find a solution for this. Does anyone know how to create users and limit the user to a specified directory?
View 6 Replies View Relatedcommands to create a DHCP server in RHEL 5.1
View 3 Replies View RelatedMy application team is asking me to generate the kernel-dump.
Here are details about my server.
OS: RHEL 4.7/32 Bit
Kernel Version: 2.6.9-89.0.23.ELsmp
Processor: Intel(R) Xeon(R) CPU E5520@ 2.27GHz
Hardware: HP Proliant 380G6 series server.
I am using Electric Cloud applications. Sometimes it creates some kernel panic and immediately got rebooted. Kernel-debuginfo rpm is not installed. In some thread, I read the kernel-debuginfo rpm's version should match with the kernel version. In my case I couldn't even find the exact version of kernel-debuginfo version.
I am trying to build an tk.8.4.19 with the rpmbuild command. In the spec file there is a make command that uses the supplied Makefile that builds tk and untars it to the build directory /usr/src/redhat/BUILD/tk_8.4.19/unix .
The issue is that /usr/bin/wish is compiled with the make command and renamed to wish8.4, , and when the rpm does build it does not contain the link /usr/bin/wish -> /usr/bin/wish8.4 and there are other custom rpms on our systems (built by other people) that call /usr/bin/wish.
I have tried adding the ldconfig ln -sf /usr/bin/wish8.4 /usr/bin/wish in the %install and %build directives, it is in the tar file. I have tested it by creating the tar with the link and creating a null file call wish but it never gets built into the rpm. Whenever I call out /usr/bin/wish in the %file directive the rpm wont build.
I believe it will install and create the link if I tell it to ignore or skip the prereq check. That requires options to the yum command but it creates a problem because I need to to work with yum -y install <tk> or yum -y upgrade <tk> through a unattended script.
Bottom line is that I need the file to exist in the rpm or after the install and yum needs to be aware that /usr/bin/wish link is there so it doesn't require an override option during install.
as after connecting thru vnc (any tightvnc or real vnc),after some time of the connecting the Linux server RHEL 5.3,screen goes black screen with X mouse movement,getting after some time login all the things are visible even we can open the terminal & any application thru taskbar option,but after some time the screen goes black with big X. eventhough I tried to disable the screen saver option then also is happening.
View 1 Replies View RelatedI have a doubt, is there any switch will display remaining time or % while copying (big size files) in RedHat Linux? Example 50 Minutes remaining) / 45% remaining
View 3 Replies View RelatedI'm Pab, just like to know, How can I allow a new user to run specific software like sqlplus.
Scenario:
I have an oradb@database user where i can execute sqlplus /nolog command, but when i created a new user named allan@database the bash says....-bash:sqlplus: command not found.
I use putty to get to my RHEL 5.3 workstation from my Windows laptop.
Typically, if I want a new terminal on my windows 7 workstation from another terminal or mc, I have to type start and I will see a new terminal window running the default shell.
QUESTION : What is the equivalent command in RHEL 5.3 (and or solaris) to create a new terminal window from the command line ? I will be entering this command from the shell prompt or mc's command line.
In Windows, if I want to start another terminal and in that terminal, I want to run a program, I can do "start program.exe arg1 arg2". this will create a new terminal window and runs program.exe in that terminal window. I don't have to create a terminal and then in a separate step run the program. How can I do this in Linux ?
Is there any way to view the any user activity/ commands history and date, time in the system? I look at the /var/log/secure but I can find only the login/ logout attempts and "history" command doesn't come with date/time that the user issue the commands. Any there any best practice to audit the user activities inside the system?
View 9 Replies View RelatedI'm having an issue with dual networking on RHEL 5. My initial question is can the order the ethx (0,1) devices are brought up be changed at boot time, so I could bring up eth1 before eth0?
Some background: eth0 is DHCP'd and using DNS, basically this is my primary network. eth1 is an isolated subnet, with a manually configured IP which has no connection to eth0 or the outside world. When I bring up networking it first brings up eth0 and then eth1, what happens is eth1 becomes the 'primary' network of the host and I lose my connection to DNS/NFS/NIS and the outside world.
If I login and manually bring up eth1 first, then eth0 everyone is happy and connections work. So, I'm looking for a solution to either bring up eth1 before eth0 or somehow make eth0 my primary IP and not have it be clobbered by eth1.
Does anyone know how to restrict only certain users to log into my RHEL 5.3 cluster? I have tried using pam.d but no luck.
View 3 Replies View RelatedI am using Red Hat Enterprise Linux AS release 4 (Nahant Update 5)and i am using send mail also..The issue is:
i am able to send emails from all OS users but unable to send mail from root user.(I am receiving mails if i send mails from all users except root user)what could be the issue?
measure kernel space time and user space time?
View 1 Replies View RelatedI have a network set up that has been working for around a year with no problems but has now developed a login problem. The system was set up with a main server with all users on it and another PC located elsewhere that people could log onto using there personal login and password that then gained access to the account on the main server. This remote PC has now got the problem. When you try to log onto an account it comes up with the message "your session has lasted less than 10 seconds. If you have not logged out yourself this could mean there is a installation problem or that you are out of disk space."
Error message says that no profile for the user can be found and it couldnt create per-user gnome configuration directory. I can log on as root onto the remote PC as it is obviously a local account but all the account on the main server are not accessible. From the root account I can see that the connection to the server is OK and I can actually log into the accounts on the server using the failsafe session so the physical network is OK.
I never built or designed this set up and to be honest I normally work with windows so its all a bit strange to me. Both PC's run Centos 5. I have checked the messages log and there doesnt seem to be any indication of a problem. Just that it stopped connecting from the remote PC. The accounts are all active on the main server itself and have no problems being accessed.