<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Cant modify the user properties in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/cant-modify-the-user-properties/m-p/5090922#M49430</link>
    <description>Also what is SELinux mode?</description>
    <pubDate>Mon, 04 Feb 2008 20:04:01 GMT</pubDate>
    <dc:creator>skt_skt</dc:creator>
    <dc:date>2008-02-04T20:04:01Z</dc:date>
    <item>
      <title>Cant modify the user properties</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cant-modify-the-user-properties/m-p/5090918#M49426</link>
      <description>here are the some of the symptoms observed.I can manullay edit the password file (vi /etc/passwd; vi /etc/group). But any of th e commands which triger the simiar operations fails(like usermod)&lt;BR /&gt;&lt;BR /&gt;Infact we were doing a h/w migration  and not sure if any files were missed to copy.&lt;BR /&gt;&lt;BR /&gt;# vipw&lt;BR /&gt;vipw: Can't set context for /etc/ptmpvipw: /etc/ptmp: Invalid argument&lt;BR /&gt;vipw: /etc/passwd unchanged&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# usermod -c "Modi Jagdish" modij&lt;BR /&gt;usermod: cannot rewrite password file&lt;BR /&gt;&lt;BR /&gt;any hints would be apprecaited</description>
      <pubDate>Mon, 04 Feb 2008 15:30:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cant-modify-the-user-properties/m-p/5090918#M49426</guid>
      <dc:creator>skt_skt</dc:creator>
      <dc:date>2008-02-04T15:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Cant modify the user properties</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cant-modify-the-user-properties/m-p/5090919#M49427</link>
      <description>I'd suggest running lsof to determine if there is another process out there holding a lock on /etc/ptmpvipw.  This may tell you what the issue is, maybe another process out there that needs to be killed off.</description>
      <pubDate>Mon, 04 Feb 2008 18:49:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cant-modify-the-user-properties/m-p/5090919#M49427</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2008-02-04T18:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: Cant modify the user properties</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cant-modify-the-user-properties/m-p/5090920#M49428</link>
      <description>&amp;gt;&amp;gt;&amp;gt; Can't set context for &lt;BR /&gt;&lt;BR /&gt;It seems a SELinux related problem, if you have SELinux enabled, you probably need to relabel the system. If you don't use SELinux, consider disabling it.&lt;BR /&gt;&lt;BR /&gt;See getenforce/setenforce man pages.</description>
      <pubDate>Mon, 04 Feb 2008 19:13:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cant-modify-the-user-properties/m-p/5090920#M49428</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2008-02-04T19:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Cant modify the user properties</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cant-modify-the-user-properties/m-p/5090921#M49429</link>
      <description>&lt;BR /&gt;Disabling SELinux  fixed the problem.&lt;BR /&gt;&lt;BR /&gt;# getenforce&lt;BR /&gt;Permissive&lt;BR /&gt;&lt;BR /&gt;I have other systems where "SELINUX=enforcing" is set. Those are working fine too. So that make a little confused. Could some one explain that..&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Feb 2008 19:57:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cant-modify-the-user-properties/m-p/5090921#M49429</guid>
      <dc:creator>skt_skt</dc:creator>
      <dc:date>2008-02-04T19:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Cant modify the user properties</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cant-modify-the-user-properties/m-p/5090922#M49430</link>
      <description>Also what is SELinux mode?</description>
      <pubDate>Mon, 04 Feb 2008 20:04:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cant-modify-the-user-properties/m-p/5090922#M49430</guid>
      <dc:creator>skt_skt</dc:creator>
      <dc:date>2008-02-04T20:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Cant modify the user properties</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cant-modify-the-user-properties/m-p/5090923#M49431</link>
      <description>You must set SELinux to disabled intead or permissive, or you will get your log files full of SELinux messages, even more than when SELinux is enabled. Configure it to:&lt;BR /&gt;&lt;BR /&gt;SELINUX="disabled"&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I have other systems where "SELINUX=enforcing" is set. Those are working fine too. So that make a little confused. Could some one explain that..&lt;BR /&gt;&lt;BR /&gt;Is hard to explain, but when SELinux is enabled, there are additional attributes on files/commands, called context. When you copy/move files, the context may not be retained. There are commands to change the context, and relabeling the system restore the context to defaults.&lt;BR /&gt;&lt;BR /&gt;For example, SELinux may ve a policy where it states that commands with the context "passwd_exec_t" may modify files with contexts "passwd_t". If the context is missing, then the modifications won't be allowed. This is just one example, context names will be different.</description>
      <pubDate>Mon, 04 Feb 2008 20:11:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cant-modify-the-user-properties/m-p/5090923#M49431</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2008-02-04T20:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Cant modify the user properties</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cant-modify-the-user-properties/m-p/5090924#M49432</link>
      <description>&lt;!--!*#--&gt;If you look at the output of 'ls -Z /etc/{passwd,group}', you should see something like:&lt;BR /&gt;&lt;BR /&gt;-rw-r--r--  root root system_u:object_r:etc_t:s0       /etc/group&lt;BR /&gt;-rw-r--r--  root root system_u:object_r:etc_t:s0       /etc/passwd&lt;BR /&gt;&lt;BR /&gt;If the context is different (the 'sustem_u:object_r:etc_t:s0' bit), then these need to be restored to their default values.  You can use the 'restorecon' command:&lt;BR /&gt;&lt;BR /&gt;restorecon /etc/{passwd,group}&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Feb 2008 20:13:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cant-modify-the-user-properties/m-p/5090924#M49432</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2008-02-04T20:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Cant modify the user properties</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cant-modify-the-user-properties/m-p/5090925#M49433</link>
      <description>Oh, what *IS* SELinux.&lt;BR /&gt;&lt;BR /&gt;SELinux is 'Security Enhanced Linux'.  It was developed with/for the NSA and takes the security model of Linux and extends it quite considerably, allowing files, network resources and devices to be accessed by given processes or users within a given security context.&lt;BR /&gt;&lt;BR /&gt;What does this mean?  An exmaple.&lt;BR /&gt;&lt;BR /&gt;If you run a web server on your machine, it will run in a context of 'httpd_exec_t'.  It can access files which have a context of 'httpd_sys_content_t'.  If you look at 'ls -Z /usr/sbin/httpd /var/www', you'll see these contexts.&lt;BR /&gt;&lt;BR /&gt;It also means that if your server is running in SELinux = Enforcing, the web server will not be able to access any file without that context, even if the file permissions are 777.&lt;BR /&gt;&lt;BR /&gt;As a test of SELinux when it was being developed, one of the developers gave root access to a machine on the 'net, with the simple challenge of 'Do anything'.  All failed.  What he did was tie the system's contexts down so tight, that even 'root' was incapable of doing anything.&lt;BR /&gt;&lt;BR /&gt;Perhaps it would be easier to read &lt;A href="http://www.nsa.gov/selinux/" target="_blank"&gt;http://www.nsa.gov/selinux/&lt;/A&gt; .</description>
      <pubDate>Mon, 04 Feb 2008 20:51:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cant-modify-the-user-properties/m-p/5090925#M49433</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2008-02-04T20:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Cant modify the user properties</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cant-modify-the-user-properties/m-p/5090926#M49434</link>
      <description>Edit the file /etc/sysconfig/selinux and make sure there's a line:&lt;BR /&gt;SELINUX=disabled&lt;BR /&gt;&lt;BR /&gt;otherwise, you'll get the same behaviour after reboot.&lt;BR /&gt;&lt;BR /&gt;If you want to check the current mode:&lt;BR /&gt;getenforce&lt;BR /&gt;&lt;BR /&gt;If you want temporarily (until the next reboot) to switch between enforcing/permissive modes:&lt;BR /&gt;setenforce 1/0</description>
      <pubDate>Tue, 05 Feb 2008 07:00:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cant-modify-the-user-properties/m-p/5090926#M49434</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2008-02-05T07:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Cant modify the user properties</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cant-modify-the-user-properties/m-p/5090927#M49435</link>
      <description>the file "/etc/sysconfig/selinux" was already taken care..</description>
      <pubDate>Tue, 05 Feb 2008 14:56:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cant-modify-the-user-properties/m-p/5090927#M49435</guid>
      <dc:creator>skt_skt</dc:creator>
      <dc:date>2008-02-05T14:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Cant modify the user properties</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cant-modify-the-user-properties/m-p/5090928#M49436</link>
      <description>closing..</description>
      <pubDate>Mon, 11 Feb 2008 00:31:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cant-modify-the-user-properties/m-p/5090928#M49436</guid>
      <dc:creator>skt_skt</dc:creator>
      <dc:date>2008-02-11T00:31:57Z</dc:date>
    </item>
  </channel>
</rss>

