Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
On my way to prepare to RHCSA exam I found the below question:
***** Reduce /home LVM partition to be 800 M without losing data.
I already can use this command
lvresize -L 800MB /home
But it should destroy its contents,I don’t know how to reduce an LVM without losing its contents!
[root@Client01 ~]# lvresize -L 800MB /dev/VG01/LV01
WARNING: Reducing active and open logical volume to 800.00 MiB
THIS MAY DESTROY YOUR DATA (filesystem etc.)
Do you really want to reduce LV01? [y/n]: y
Reducing logical volume LV01 to 800.00 MiB
Logical volume LV01 successfully resized
Create the nonlogin shell users test1,test2 and test3 with the same
password. make sure that test2 can issue any of root commands.
1. How can I create nonlogin shell users? does this means set the shell to be /sbin/nolgin ?
2. to make him issue any of the root commands just to put as root is his secondary group ?
well, you could make their gid 0, but that's a bit rubbish a thing to do. Is this really a genuine test question? You'd not be asked to achieve that in an exam I'm sure.
could be please provide the shortest steps to accomplish the below tasks:
1. Start “HTTPD” service and make sure when you browse “http://yourdomain/index.html” you will say “hi”
2. Start VSFTPD and make sure that “anonymous” users can login
these tasks are very straight forward, and you can find out ways to achieve them by searching around a bit, and that way you'll learn a hell of a lot more.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.