CentOS 5 :: Useradd Command - Finding 10 Last Files Sorted

Apr 6, 2009

I work under centos 5, I would like to know which command to use in order to find where the useradd command is geinstalled. Second How can I find the 10 last files sorted (reverse) from the /etc directory.

View 2 Replies


ADVERTISEMENT

General :: Useradd Command To Create Passwd / Shadow & Other Files Under Different Directory

May 19, 2011

I am bulding my own image based on 2.6.32 kernel, I wish to add a guest user:

In a script thats invoked by the makefile, I use 'useradd' command & this updates the shadow, passwd files under /etc on the host, is it possible to tell the command to create the shadow / password under some other folder on the host? may be /tmp?

View 2 Replies View Related

General :: Use Useradd Command Against LDAP?

Dec 12, 2010

How can I add user on LDAP to my Linux server ?

View 1 Replies View Related

General :: Add A User Using The Useradd Command?

Feb 10, 2010

I am trying to learn shell scripting from a book and all I am doing is following few instruction from the book. Now this is what I am doing. I am trying to add a user using the useradd command so I run the following at command prompt root@S8500C_9>useradd ajit. The first time when I add this user I was successful.Later I deleted this suer using the userdel -r ajit command.Now when again I am trying to add this user it gives me following error. useradd: group ajit exists - if you want to add this user to that group, use -g. Now when I try using the -g option with the useradd command it gives we all the set off options avaiable to use along with the useradd command but doesnt create the ajit use

View 5 Replies View Related

General :: USERADD Command NOT Found?

May 25, 2010

when i see /usr/bin there is no useradd command. and i want to add a user.if i type the command it is shooting an error saying command nt found .how should i create a user.

View 3 Replies View Related

Server :: Add A User With Useradd Command?

Mar 26, 2011

I want to add a user with useradd command, however I get this error:

Code:
mahmood@node1:home$ sudo useradd user2
useradd: cannot lock /etc/passwd; try again later.

View 3 Replies View Related

General :: Listing Files Recursively, Sorted By Time, Limited Head?

Mar 24, 2011

I'm trying to make a shell script that will list the 50 newest files in a directory with several subdirectories in. I've been trying with the find-command with no luck and now I've figured I should probably use ls. The problem is when I do "ls -lRt | head -50" it will do 1 directory at the time. It will not first make the full list and then sort it. This will display all items in first directory, sorted, then the newest directory will be sorted and displayed. So I figured I have to sort the whole process of ls before I limit the head. So this is where I am at now: ls -lRt | sort <something clever here> | head -50

Only doing a "|sort|" will sort it by name if I understand it right and I don't know how to solve it. Here's also my first attempt if that is of any interrest or help, this was limited by the change status time of files (so some lists got very large). These lists dit not get sorted by time and I could not find any way to do so.find $ftpDir -ctime $time -type f -print > $ftpFileLsAny help on this would be appreciated since I'm sort of stuck now. After reading manuals for all the options I can think of and still there's just a big blur in my head..

View 12 Replies View Related

General :: Return Code 1 For Useradd Command?

May 2, 2011

getting a error return code for useradd commandthe return code is 1cite or tell me the explanation of return code 1 .

View 1 Replies View Related

General :: Creating Account With Useradd Command

Mar 9, 2011

I encountered a question in the Redhat Skills Assessment regarding useradd: Which of the following cannot be defined when you create a user account with useradd?
a* A password expiration date.
b* The user's primary group.
c* The user's default shell.
d* The user's NIS or LDAP group.
e* The user's home directory.
Which is the correct answer? I have my own thinking which will be explained later.

View 2 Replies View Related

General :: Unable To Neither Add New Users Using Command Useradd Nor Delete Existing Users Using Command Userdel

Jun 30, 2010

Im not getting able to neither add new users using command useradd nor delete existing users using command userdel. And even Im not getting able to login into any existing users except root. It was ok before. Im having this problem very recently on my linux server. Im using RHEL5.

View 9 Replies View Related

Debian Configuration :: Can't Login With New User (useradd Command)

Sep 5, 2015

I created a new user with command useradd (as root) :

Code: Select alluseradd razer123

And then set a password with command passwd (as root):

Code: Select allpasswd razer123
No Error!

When I logged out and tried to login with new user, I coulden't! (even after restart!)

I looked into /etc/passwd :

Code: Select allcat /etc/passwd | grep razer123

result:

Code: Select allrazer123:x:1002:1002::/home/razer123:/bin/bash

There is no home folder in the path!

# I have debian 8 and MATE desktop.

View 5 Replies View Related

Ubuntu :: Create One User Without Password Using Useradd Command?

Jul 1, 2010

I want to create one user without password using useradd command. Is there any way we can do the same? I have googled it but couldn't get the perfect solution

View 1 Replies View Related

General :: Bash Variable - Simple Script For Finding And Copying Files Powered By The Command?

Aug 2, 2009

Ive been using linux for a while but I am just getting into shell scripting, im currently trying to get a simple script for finding and copying files powered by the command:

Code:

This works fine from the command line but when put in a script such as:

Code:

Code:

with the keyboard inputs for $fc1 and $fc2 being *.doc and ~/test respectivly. The only problem i can see is the xargs -ivar "var" part possibly needing $var to be defined?

View 2 Replies View Related

Red Hat / Fedora :: Finding A Sed Command To Print A List Of Files In "/home" Directory?

May 14, 2009

I need a sed command to print a list of files in "/home" directory, ending in ".sh"

View 4 Replies View Related

General :: Set Up New Keybinding For Finding Last Command Executed Using The First Few Characters Of The Command In Csh?

Jul 21, 2010

I want to be able to use Ctrl+R to have reverse-i search. Also if I press Shift+Up Arrow after typing the first few characters of a recently executed command then the shell should complete the command by finding the most recent commmand having the same first few characters.

View 1 Replies View Related

CentOS 5 :: Remove Temporary Files Through Command Line?

Jan 16, 2010

Where exactly are the temporary files stored, in /tmp or /var/tmp. How can i remove temporary files through command line? What is the difference between these two directories?

View 2 Replies View Related

Ubuntu :: Finding A Cc Cleaner Equivalent To Clear-out Temporary Files / Internet Files / Etc?

May 23, 2011

Is there a cc cleaner equivalent for linux to clear out tmp, internet files, etc.?

View 9 Replies View Related

Ubuntu Multimedia :: Finding A Program That Converts AVI Files To VOB Files?

May 23, 2011

Is there a program for Ubuntu that converts AVI files to VOB files? This is the only type of file that will burn to a DVD and successfully play on my DVD player. I can use DVD Flick on Windows but I'm sure this can't be the only way. There has to be a way to get VOB files on an Ubuntu operating system.

View 4 Replies View Related

Ubuntu :: Configuring Terminator And DevilsPie Sorted

Jun 13, 2010

I'm trying (well aiming) to customize my desktop so that on login Terminator is on workspace 3 (split 3 ways and running lynx, irssi and top. I'm using gdevilspie to configure it but I understand and can use the normal config files. When I use gdevilspie to make a terminal background it works but when i try to do stuff with terminator it doesn't.

Here's my terminator config so far:
Code:
( if
( begin
( is ( window_class ) "terminator" )
)
( begin
( undecorate )
( spawn_sync "top" )
( set_workspace 3 )
( maximize_horizontally )
( center )
( below )
( set_viewport 3 )
( println "match" )
) )

Once I do get devilspie sorted I also want to make Terminator automatically split and run the correct commands.

View 2 Replies View Related

General :: Find Threads And Posts Sorted With The Latest First?

Jan 3, 2011

How do you find your threads and posts sorted with the latest first?

View 1 Replies View Related

General :: Display All Rpm Installed List Sorted By Date?

Oct 4, 2010

I know "rpm -qa --last" lists all rpm with date and time. But I want to sort the list by date, with earlier installed rpms displayed ahead. So it needs pipe, ie something like "rpm -qa --last | ...". What is exact script to do it?

View 3 Replies View Related

Software :: Have E-mail Automatically Sorted In IMAP-folders

Jun 11, 2011

I frequently receive e-mail from mailing lists in which I would like to stay active in, although when I access my e-mail I'd like to be able to have the unimportant e-mails in their specific IMAP-folders so I can read them later when I have time.

There is one very important requirement. It bugs me that people continuously keep advising me poor solutions that involve forwarding e-mail e.g. to blabla-mailinglist@domein.tld or storing the e-mail locally. I work frequently from different locations, use different e-mail accounts and see e-mail stored on the server rather than on my local machine as a great advantage.c.

I was thinking of preferably a simple solution that works via a cronjob to do sorting, so it will also work for Plesk and Gmail IMAP accounts. Sorting based on from/to/subject should be sufficient.

View 1 Replies View Related

Programming :: Reading The Absolute File-path As Sorted?

Jun 13, 2010

I wanted to read out the absolute file-path (filename) as sorted in a folder (on Linux). The reading the file-paths is ok but I have problems in sorting.

Code:

selectedDirectory = fl_dir_chooser ("Select Imagedirectory:",NULL,0); //This is just a widget to show the folder.
DIR *d;
dirent *de;

[code]....

The files -105.dcm, -106.dcm, -107.dcm lie in the folder at the bottom and -36.dcm, -37.dcm- at the top. The program compares 1 and 3 of 105 and 37, 1 is lesser than 3, then prints out first, but does not know that 105 is three digits and 37 is two digits.

View 1 Replies View Related

General :: Finding IP Address Using Command Prompt?

Apr 4, 2010

I'm looking for a way to get my IP address using the command prompt in Linux. I know when you type "ifconfig" you can get your local IP address (i.e. 192.168.0.103), but I'm looking for my IP address that I get from my ISP. How can I get this from Linux without having to visit some website?

View 3 Replies View Related

Ubuntu :: Finding The C++ Command-line Editors?

Dec 1, 2010

My professor is making us do a few c++ projects only with the command line. What do you guys recommend? Ive heard editors such as nano, vim, and emacs.

View 1 Replies View Related

Red Hat / Fedora :: Finding File Behind Command In Process

Dec 7, 2009

I have a many process running in my machine with similar command and the command is 'gzip'. It is running by a program in a file. How will I find out the file which is behind this command.

View 4 Replies View Related

General :: Finding Mac Address With Tcpdump Command?

Dec 10, 2009

when i send any packet to anu destination and want to see he mac address of source and destination i am using the command tcpdump -qec1 but rather then getting the mac address of source and destination each time i am getting mac address of the system which is broadcasting. will anybody tell me how can i get source and destination mac address even if any other packet is also being broadcast to my network.

View 1 Replies View Related

General :: Finding Folder Size Using Command

Oct 26, 2009

I want to know is there a command to find size of a folder.

View 4 Replies View Related

Programming :: Finding A Script To Detect The OS And Run A Command?

Apr 4, 2011

I need a good way to detect if a box is solaris or linux and then be able to run out a os-centric command given the output...

View 7 Replies View Related

Fedora Installation :: Finding A Terminal Command That Probes Other OS's?

Nov 3, 2010

Whenever I install Fedora other distros don't show up in GRUB. Windows shows up in "other," and I can see the other distro still intact when I run G Parted, but I don't know how to get it to show up in GRUB. Is there a terminal-command in F14 that probes other OS's on the hard drive and restores them to GRUB?

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved