Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
08-23-2003, 05:39 PM
|
#1
|
LQ Newbie
Registered: Aug 2003
Location: Virginia Beach, VA
Distribution: Mandrake 9.1
Posts: 16
Rep:
|
File Locked
My distro is Mandrake 9.1.
I want to downlaod a file from the Internet and put it in /usr/src and would like to give write privileges and own the directory to the group "users." As root, I did the following:
I used chmod 770 /usr/src to assign the privileges.
I used chown root.users /usr/src to give ownership to users.
I loged back in as myself, ran KDE 3.1. From KDE, I ran Konqueror Web Browser, went to the web site, and attempted to download the file I wanted to put in /usr/src. I was denied access to src. When I checked the directory, I found that the permissions were 750 and was told that the director was Locked.
What am I doing wrong?
|
|
|
08-24-2003, 11:24 AM
|
#2
|
Senior Member
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403
Rep:
|
Try again.
Login as root and type the commands again:
Also, for chown, use a colon ( : )
Code:
chmod 770 /usr/src
chown root:users /usr/src
What does the ls command tell you.
|
|
|
08-24-2003, 01:00 PM
|
#3
|
LQ Newbie
Registered: Aug 2003
Location: Virginia Beach, VA
Distribution: Mandrake 9.1
Posts: 16
Original Poster
Rep:
|
After doing what you suggested and running ls -lsa, I get the following information:
<code>
4 drwxrwx--- 4 root users 4096 Aug 24 07:32 src/
</code>
When I logout as root, however, and login with my username and password, I cannot access /src. When I type cd src and press enter, I receive the following information:
<code>
-bash: cd: src: Permission denied
</code>
Do I need to make myself a member of the users group or am I a member of users group by default? If I need to add myself to the users group, how do I do that?
What next?
Last edited by guyd; 08-24-2003 at 01:10 PM.
|
|
|
08-24-2003, 02:22 PM
|
#4
|
Senior Member
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403
Rep:
|
Yes, you need to add your user to the users group.
You can use UserDrake.
It is located in the Control Center (DrakConf).
http://doc.mandrakelinux.com/Mandrak...userdrake.html
|
|
|
08-24-2003, 03:52 PM
|
#5
|
LQ Newbie
Registered: Aug 2003
Location: Virginia Beach, VA
Distribution: Mandrake 9.1
Posts: 16
Original Poster
Rep:
|
When I open Mandrake Control Center, type the root password, click on System, and then UserDrake, I am told that "The password you typed is invalid. Please try again."
I don't understand this because the password I tryped is the root password. And what is more, I don't know how to "try again." can you help me resolve this problem?
I have also been told that I can edit the groups file manually at /etc/groups. The groups file, however, is not in my /etc directory. Do you have any idea where it might be?
I will greatly appreciate your answering these two questions for me.
Last edited by guyd; 08-24-2003 at 05:21 PM.
|
|
|
08-24-2003, 04:12 PM
|
#6
|
Senior Member
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403
Rep:
|
The groups file is /etc/group
As for your root password, if you are logged-in as a normal user, at the command line, type:
And enter your root password.
|
|
|
08-24-2003, 05:28 PM
|
#7
|
LQ Newbie
Registered: Aug 2003
Location: Virginia Beach, VA
Distribution: Mandrake 9.1
Posts: 16
Original Poster
Rep:
|
As I say, when I open Mandrake Control Center, type the root password, click on System, and then UserDrake, I am told that "The password you typed is invalid. Please try again." I am logged in as root, not as myself.
Also, I cannot find the groups file /etc/group. There is nothing in the /etc directory that resembles that. group does not show up in this directory when I type ls -a.
Last edited by guyd; 08-24-2003 at 05:31 PM.
|
|
|
08-24-2003, 05:30 PM
|
#8
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313
Rep:
|
type:
su
#Then enter your root password
usermod -G users yourusername
exit
This will add the user to the group users so that it has permissions for the directory.
|
|
|
All times are GMT -5. The time now is 07:25 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|