LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 06-14-2003, 05:16 PM   #1
nchauhan
Member
 
Registered: Jun 2003
Location: TX, USA
Distribution: Red Hat 9.0
Posts: 43

Rep: Reputation: 15
changing user's previlegdes for commands


hi,

i need some help regarding changing user's permissions to certain commands. to be more specific: i, being a root, want to give a permission to another local user so that he/she can create his/her directory in his/her home directory.

thanx
 
Old 06-14-2003, 05:43 PM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
hmmm...you mean you want the user Jane to be able to create a direcotry in /home/Jane? By default, Jane should have ownership of the Jane directory. Its hers.

I don't understand what you are going after exactly?
 
Old 06-14-2003, 05:50 PM   #3
nchauhan
Member
 
Registered: Jun 2003
Location: TX, USA
Distribution: Red Hat 9.0
Posts: 43

Original Poster
Rep: Reputation: 15
well, yes, if jane is a normal user then she should have right to creat her own directories in her own home directory (which is /home/jane), of course she cannot/does not have right to mkdir/rmdir in anyother user, say james, who is other normal user.

but whn i, logged on as normal user, try to create a directory (mkdir ...) in my home dir (/home/user_name) it does not work! so i thought that i need to change the previledges of jane (as root) so that she can mkdir/rmdir in her own /home/jane.

hope i am clear enough now
 
Old 06-14-2003, 06:09 PM   #4
nchauhan
Member
 
Registered: Jun 2003
Location: TX, USA
Distribution: Red Hat 9.0
Posts: 43

Original Poster
Rep: Reputation: 15
(for 'crashed_again')

let me give one more example:

1. two normal users: jane and james
2. one root.

3. by default jane has her own dir : /home/jane
and so does james: /home/james

the problem:

so jane has logged on to the system, she wants to creat another dir., say cpp_prgs (ie /home/jane/cpp_prgs), but my problems is that i (as normal user) am not able to do that, so every time i need need to create dir., i switch to root and then do it (which i do not like), so i thought that if there was some way if i could give rights related to dirs. to jane then she can easily manipulate her /home/jane (of course she would not be able to do the same in james (or any other user) dir.)!

am i making some sense now? and i would like to knw "is it even possible?", i checked some books but i could not find anything related to it.

help!
 
Old 06-14-2003, 06:41 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well it's easily possible by either adding your "normal user" (???) to the root group, or janes group in /etc/group, or change the permissions on janes direcotry to allow anyone at all to access it.

This is a bad idea though, and kinda defeats the point of seperate users, and makes a joke out of the security features too, so should be avoided.
 
Old 06-14-2003, 09:32 PM   #6
nchauhan
Member
 
Registered: Jun 2003
Location: TX, USA
Distribution: Red Hat 9.0
Posts: 43

Original Poster
Rep: Reputation: 15
ok. so let me put it down in my words, wht i understood.

1. the only way for a normal user capable of using mkdir/rmdir commands is to give the all root prviledges (including in root group)

2. whn u say "change the permission", u mean by "chmod"??? can u help me with one example? please

thank you, your reply was of great help.
 
  


Reply



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
Changing user's home directory? HOW barton Debian 10 04-04-2005 02:27 AM
where are a user's commands saved? learnfast Linux - Newbie 2 03-10-2005 08:17 AM
Changing user's group? orange400 Linux - General 2 06-18-2004 04:30 AM
changing a regular user's password using root Pete Dogg Linux - General 2 11-28-2003 10:49 PM
Changing a user's default group dogn00dles Linux - Security 4 07-09-2003 03:59 PM

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

All times are GMT -5. The time now is 04:55 PM.

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