creating a new user

Daniel J Walsh dwalsh at redhat.com
Thu Sep 28 14:35:22 UTC 2006


Sandra Julieta Rueda Rodriguez wrote:
> Hello,
>
> I just executed the given instructions (semodule -n -r) to fix the problem
> with semodule and now everything is working ok. Thanks.
>
> Now I have a different problem ....
>
> I am trying to create a new user. I added it to the file local.users in
> the src directory and also to /etc/selinux/strict/users/local.users. I
> tried first to modify only the one in src but it did not work, so I also
> modified the other one.
>   
Why not use semanage user -a to add SELinux users
or
semanage login -a if you want to map a UID to a SELinux user.
> Since I am working based on refpolicy (I already run make install-src) and
> the instructions I have found are for previous versions I am not sure if I
> need to run make policy, and then install.  Just to be sure I tried, make
> policy worked ok, but make install does not work ...
> I guess I am doing something wrong ... could anybody help me with that?
>
> This is the output of make install:
> Validating strict file_contexts.
> /usr/sbin/setfiles -q -c /etc/selinux/strict/policy/policy.20
> file_contexts
> libsepol.context_from_record: user rueda is not defined
> libsepol.context_from_record: could not create context structure
> libsepol.context_from_string: could not create context structure
> libsepol.sepol_context_to_sid: could not convert rueda:staff_r:staff_t to sid
> file_contexts:  line 2149 has invalid context
> make: *** [/etc/selinux/strict/contexts/files/file_contexts] Error 1
>
> rueda is the user I am trying to create by adding it to the local.users
> file. I am also trying to use it as part of the context for a file.
>
> Thanks in advance,
> Sandra
>
>
> --
> fedora-selinux-list mailing list
> fedora-selinux-list at redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-selinux-list
>   




More information about the fedora-selinux-list mailing list