LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 04-01-2015, 02:09 AM   #1
prashanthKirnay
LQ Newbie
 
Registered: Dec 2014
Posts: 3

Rep: Reputation: Disabled
Change of chmod


How do we change the #CHMOD values permanently even after restating the machine in RHCL 7.0 version

Regards,
Prashanth
 
Old 04-01-2015, 03:50 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
I think this question has no meaning without a context. Can you please give us more details
 
Old 04-06-2015, 02:27 AM   #3
prashanthKirnay
LQ Newbie
 
Registered: Dec 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
HI,

What is the default umask value in root login.

and if i want to change the umask value permanently to other value where do i change?

Regards,
Prashanth
 
Old 04-06-2015, 11:45 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
see man bash, and look for umask settings. You can simply execute umask to display the current config. Use ~/.bashrc to modify it, but I think it is not a good idea to modify the default permanently.
 
1 members found this post helpful.
Old 04-07-2015, 01:16 AM   #5
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Quote:
Originally Posted by prashanthKirnay View Post
HI,

What is the default umask value in root login.

and if i want to change the umask value permanently to other value where do i change?

Regards,
Prashanth
To find current umask value just run 'umask'.

You can set it either in /etc/profile or in /etc/login.defs.
 
1 members found this post helpful.
Old 04-20-2015, 02:19 AM   #6
prashanthKirnay
LQ Newbie
 
Registered: Dec 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hi,

I want to create a new user which has same privilege as /ROOT in RHEL

Requirement : need to share the created user which can perform all operations as root once logged in.

where the created new user is addded in order to get complete root access.

Regards,
Prashanth K
 
Old 04-20-2015, 02:44 AM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
please open a new thread if you have a new question/issue.

Creating a new root user has no any meaning. The system handles the user id (which should be 0), and also the string 'root' is hardcoded sometimes, therefore using any other name may or may not work properly.
Instead you need to use sudo.
 
Old 04-29-2015, 01:13 PM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by prashanthKirnay View Post
Hi,
I want to create a new user which has same privilege as /ROOT in RHEL

Requirement : need to share the created user which can perform all operations as root once logged in. where the created new user is addded in order to get complete root access.
This is a HORRIFICALLY bad idea...and there is absolutely no reason to do it. As mentioned by pan64, sudo is the tool you should use. It allows a 'regular' user to get elevated rights when needed. Setting up another group-0 user isn't a good thing.

The better question is WHY you want to do this, and what your 'requirement' actually is.
 
Old 04-29-2015, 09:35 PM   #9
RMLinux
Member
 
Registered: Jul 2006
Posts: 260

Rep: Reputation: 37
read this link https://armantutorial.wordpress.com/...sion-in-linux/
 
  


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
Apache: difference between chmod 644 and chmod 666 and chmod 600 for output/txt/dat? frenchn00b Programming 6 04-22-2009 01:10 PM
chmod can not change permission lovelylinux Linux - Software 5 09-20-2007 05:22 AM
chmod to only change directories lluciano Linux - General 2 08-17-2005 02:14 PM
chmod permission change? tidasu Linux - Newbie 7 08-30-2004 06:02 PM
using chmod to change file permission kiwidoc Linux - Newbie 3 07-25-2004 06:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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