Mount, READ and WRITE reiserfs and ext3 partitions
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
That's because the grep is not returning anything from /etc/passwd. Sorry, I should have left a fallback choice. The following changes the ownership to root if smiley isn't found:
What it did was change the ownership to root because the smiley user does not exist in /etc/passwd - most likely the spelling is wrong. Once you have the same spelling for smiley as is used in /etc/passwd the command will change the ownership of the files under /media/hda6/home/smiley to smiley.
Ok, I have tried
$sudo chown -R smiley:users /media/hda6
and I am getting the same invalid user error.
ALSO, note, that I tried logging into the partition hda6 (ubuntu breezy) with username 'smiley', and I was told that the /.<filename> have chnaged permission to root and I can't save sessions; will aloow me to log in for 10secs; and then logged me out.
Am I royally screewed now? or can we revert to the previous permissions to allow smiley access to the drive? Alternatively, I may have to create a NEW user for that Breezy partition???
Please read what I posted earlier, you will not be able to chown to smiley until that user exists and has an entry in /etc/passwd. If that user should already exist then the spelling is wrong or chown would not give the invalid user error. Once the correct spelling is used, the chown command will work.
Is this a multi-boot system and hda6 contains the home partition for another distro? If so, you're not screwed - just boot that distro, login as root and chown back to whichever user should own the files. Is that the distro where the smiley user exists? If so, user accounts are not automatically created for the other distros and this may explain why you're getting the invalid user error for smiley - have you created the user smiley in the distro where your running the chown command?
This is very helpful. Yes, I have created a suer by the name "smiley" and I am sure there is no spelling error. Smiley is a user on the hda6 Ubuntu Breezy, so yes, it is another distro. I will follow your instructions to reset the o/p back to smiley.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.