03-11-2002
chown user:group file
for example:
chown tomcat:tomcat file
if tomcat is a directory, you can do a recusive owner change like this:
chown -r user:group file
hope this helps.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
:confused:
I have put together an old machine with a 386DX CPU (40MHz)
with 8Mb of RAM and a 160Mb hard disk. One guy told me that its still suitable for UNIX. Can enyone give me some hints on how to start? (1 Reply)
Discussion started by: msm
1 Replies
2. UNIX for Dummies Questions & Answers
i am currently am planning to start a webserver to host a community of webpages, but i need help getting started? anyone have any sites or advice for me? thanks! (1 Reply)
Discussion started by: bowlofrice
1 Replies
3. UNIX for Dummies Questions & Answers
I just installed FreeBSD 4.5 and I want to find out how I can start and run X? When I boot I get taken to the command line. Xconfigurator doesn't want to work. (2 Replies)
Discussion started by: AMDPwred
2 Replies
4. UNIX for Dummies Questions & Answers
I just got a book on how to use UNIX but it says to type in your host but what's the name of the host that i type in?
And after that where do I get my user id and password for that host?:confused: (1 Reply)
Discussion started by: animae64sm
1 Replies
5. Shell Programming and Scripting
I am re-learning UNIX and want to download Unix to my lab for studying on the road. Any suggestions? Got several books, but need to run scripts :rolleyes: (2 Replies)
Discussion started by: DudeMan
2 Replies
6. Shell Programming and Scripting
Hi, i want to start my script only by the name of it.
$ scriptName
normaly i have to use ./scriptName oder sh scriptName
is there a way to do that in bash or sh ? (13 Replies)
Discussion started by: Turrican
13 Replies
7. UNIX for Advanced & Expert Users
Hi Gurus,
I have a server that has to users.
1) root
2)net1
there are several processes running on my server
one of the process is CMIS_STACK process which is a compiled C code
when this process goes missing then i restart this process manually in the following manner
... (2 Replies)
Discussion started by: asalman.qazi
2 Replies
8. UNIX for Advanced & Expert Users
Besides doing some shell-script which loops through /etc/passwd, I was wondering if there was some command that would tell me, like an enhanced version of getent.
The Operating system is Solaris 10 (recent-ish revision) using Sun DS for LDAP. (5 Replies)
Discussion started by: ckmehta
5 Replies
9. Solaris
Hi friends,
Hope everyone is fine and doing well. I have just installed Solaris 11, and everytime I boot my machine, I face the command prompt. Could you please tell me how I can setup the graphical environment, like gnome kde etc.???
Thanks in advance! (5 Replies)
Discussion started by: gabam
5 Replies
10. UNIX for Dummies Questions & Answers
e.g.
File name: File.txt
cat File.txt
Result:
#INBOUND_QUEUE=FAQ1
INBOUND_QUEUE=FAQ2
I want to get the value for one which is not commented out.
Thanks, (3 Replies)
Discussion started by: Tanu
3 Replies
LEARN ABOUT CENTOS
switch_root
SWITCH_ROOT(8) System Administration SWITCH_ROOT(8)
NAME
switch_root - switch to another filesystem as the root of the mount tree
SYNOPSIS
switch_root [-hV]
switch_root newroot init [arg...]
DESCRIPTION
switch_root moves already mounted /proc, /dev and /sys to newroot and makes newroot the new root filesystem and starts init process.
WARNING: switch_root removes recursively all files and directories on the current root filesystem.
OPTIONS
-h, --help
show help and exit
-V, --version
show version number and exit
RETURN VALUE
switch_root returns 0 on success and 1 on failure.
NOTES
switch_root will fail to function if newroot is not the root of a mount. If you want to switch root into a directory that does not meet
this requirement then you can first use a bind-mounting trick to turn any directory into a mount point:
mount --bind $DIR $DIR
SEE ALSO
mount(8), chroot(2), init(8), mkinitrd(8)
AUTHORS
Peter Jones <pjones@redhat.com>
Jeremy Katz <katzj@redhat.com>
Karel Zak <kzak@redhat.com>
AVAILABILITY
The switch_root command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
util-linux June 2009 SWITCH_ROOT(8)