LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 08-23-2003, 05:39 PM   #1
guyd
LQ Newbie
 
Registered: Aug 2003
Location: Virginia Beach, VA
Distribution: Mandrake 9.1
Posts: 16

Rep: Reputation: 0
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?
 
Old 08-24-2003, 11:24 AM   #2
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
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.
Code:
ls -lsa
 
Old 08-24-2003, 01:00 PM   #3
guyd
LQ Newbie
 
Registered: Aug 2003
Location: Virginia Beach, VA
Distribution: Mandrake 9.1
Posts: 16

Original Poster
Rep: Reputation: 0
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.
 
Old 08-24-2003, 02:22 PM   #4
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
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
 
Old 08-24-2003, 03:52 PM   #5
guyd
LQ Newbie
 
Registered: Aug 2003
Location: Virginia Beach, VA
Distribution: Mandrake 9.1
Posts: 16

Original Poster
Rep: Reputation: 0
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.
 
Old 08-24-2003, 04:12 PM   #6
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
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:
Code:
su -
And enter your root password.
 
Old 08-24-2003, 05:28 PM   #7
guyd
LQ Newbie
 
Registered: Aug 2003
Location: Virginia Beach, VA
Distribution: Mandrake 9.1
Posts: 16

Original Poster
Rep: Reputation: 0
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.
 
Old 08-24-2003, 05:30 PM   #8
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FC4: Changing locked Grub file heffo_j Fedora 2 12-01-2005 06:55 AM
Thunderbird profile locked without lock file surfer63 Linux - Software 1 11-10-2005 08:30 AM
file locked by another user Dagk Linux - Newbie 6 09-14-2005 09:08 PM
File owner and File group locked - root deiphage Linux - Hardware 5 02-05-2005 01:30 PM
Mozilla Firebird (locked file) bkeating Linux - Software 3 10-23-2003 06:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration