Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 19 of 19
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11

    create the .bash_profile and the .bashrc file under your home directory. Contents of the .bash_profile follow

    # .bash_profile

    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
    . ~/.bashrc

    # User specific environment and startup programs


    export PATH

    Contents of .bashrc

    # .bashrc

    # Source global definitions
    if [ -f /etc/bashrc ]; then
    . /etc/bashrc

    # User specific aliases and functions

  2. #12
    Quote Originally Posted by pelf View Post
    What do you mean? How do I replace my username with the one for grep?
    Why is it that everything I do gives me permission denied and I have to use sudo?

  3. #13
    can you ls -la the files under home directory and the parent folder. Could be ownership issu
    ls -la /home

    ls -la /home/newuser

    Do you have selinux enabled?

  4. $spacer_open
  5. #14
    I have drwxr-xr-x. on new.user directory in home.

    which selinux returns: no selinux in ...

  6. #15
    I meant the user and group ownership of the home directory and the files and folders under it.

    To check selinux use the command getenforce

  7. #16
    same permissions. Enforcing!
    Still no permissions to write without using sudo.

  8. #17
    If you are not using selinux then I would suggest you can disable it for now.

    To disable the selinux, edit the file /etc/sysconfig/selinux

    modify the line, SELINUX=enforcing

    reboot the system. In case you cannot reboot the system then as root run the command "setenforce disable"

    This could resolve your issue.

  9. #18
    Didn't help... same issue... everything needs permission!

  10. #19
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    I've never had to do this, so it's a shot in the dark here...
    Do this with sudo:
    mv /home/ /home/
    chown -r /home/
    Logout and log back in.
    It might work.

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to private messages asking for Linux help. Please keep it on the public boards.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts