LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-27-2009, 01:35 AM   #1
sskraju
LQ Newbie
 
Registered: Jul 2008
Posts: 7

Rep: Reputation: 0
Post small questions


I'm a linux newbie.I have 2 doubts

1.when you create a file in a directory, group will get only read permissions. So you need to do changes so that for that user when ever he creates a file complete group should be having write permissions on that file


2.there are two groups group1 and group2 and user user1's primary group is group1. make changes so that user1 can do any changes in group2.

can someone answer these with explanations

thanks
 
Old 11-27-2009, 03:03 AM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,686
Blog Entries: 33

Rep: Reputation: 288Reputation: 288Reputation: 288
Hi, How ya goin"?

Just have a look at (without quotes) "man chgrp", "man chmod", "man chown". ("man chage" for passwords)

in a terminal/shell

that may help!

regards Glenn
 
Old 11-27-2009, 03:32 AM   #3
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by sskraju View Post
1.when you create a file in a directory, group will get only read permissions. So you need to do changes so that for that user when ever he creates a file complete group should be having write permissions on that file
This can be addresse with the umask setting. Check out man umask or search the forum for permission there should be plenty of links to get you going.
 
Old 11-27-2009, 09:22 AM   #4
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
Quote:
1.when you create a file in a directory, group will get only read permissions.
This could be intended by the admin for your protection. If you want your 'Group' to have read and write access, you can do this:

user@host-$ chmod 775 /folder/filename

doing this your group can Read, Write and Execute the file you allowed them. but this is not advisable either, do it to your own risk.

Quote:
So you need to do changes so that for that user when ever he creates a file complete group should be having write permissions on that file
You can make a global change by altering the mask. Again this is not safe.

user@host--$ sudo umask 0002

then whatever he creates the group can Read, Write and Execute. Not safe!

Quote:
2.there are two groups group1 and group2 and user user1's primary group is group1. make changes so that user1 can do any changes in group2.
can someone answer these with explanations
make user1 a member to group2. Use your applet, its so easy.

Next time please specify what distro you are running so that the answers can pinpoint an effective solution for you. Meantime, to hasten up experience with Linux it is good to download here a tutorial and read from it anything you wanted to know about permissions, groups, users, and important commands.

Hope this helps.

Good luck.

Last edited by malekmustaq; 11-27-2009 at 09:24 AM.
 
Old 11-27-2009, 11:17 AM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,960
Blog Entries: 46

Rep: Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188
Hi,


Quote:
Originally Posted by sskraju View Post
I'm a linux newbie.I have 2 doubts

1.when you create a file in a directory, group will get only read permissions. So you need to do changes so that for that user when ever he creates a file complete group should be having write permissions on that file


2.there are two groups group1 and group2 and user user1's primary group is group1. make changes so that user1 can do any changes in group2.

can someone answer these with explanations

thanks
Smells like homework to me!

Just a few links to aid you;

Linux Documentation Project
Rute Tutorial & Exposition
Linux Command Guide
Utimate Linux Newbie Guide
LinuxSelfHelp
Getting Started with Linux
Advanced Bash-Scripting Guide
Virtualiation- Top 10


The above links and others can be found at 'Slackware-Links'. More than just SlackwareŽ links!
 
  


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
[OpenBSD] Small Network Design Questions LinuxCrayon *BSD 10 09-07-2008 02:17 PM
A few small questions Gortex Linux - Server 2 06-28-2007 04:12 AM
Noob with server questions for small business K2712 Linux - Server 5 04-27-2007 01:40 AM
A couple of small questions Napalm Llama Linux - Software 6 06-06-2005 11:45 AM
Small File Sharing Server Questions Chryzmo Linux - Networking 1 03-26-2004 01:07 AM

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

All times are GMT -5. The time now is 11:21 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