#1
  1. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2003
    Posts
    702
    Rep Power
    96

    User permissions


    I created a user and I want to give this user access to a portion of my files in my account. I create the user and assign the rbash. The user though cannot create anything because the user and group is my ID. So I issue the following command
    PHP Code:
    pw usermod <new_user> -<my_ID
    hoping that the new user ID will be added to my group. Well, the new user cannot create files because of the permissions. How do I set the ID to be able to create files?

    Thanks,
    Evan
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Jul 2004
    Location
    Middle Europa
    Posts
    1,200
    Rep Power
    14
    hello, please stop using tools - mostly (bad) shell-scripts - you do not
    know what they do.
    just TRY to learn unix, its easy! and do it by hand, tomorrow you
    perhaps are on a system w/o that tools
    on bsd you have in /etc two files: passwd and groups
    edit passwd, duplicate the line of user A
    on the duplicated line: change A by B, change user-id (and home-dir)
    in groups, add to group A the user B
    thats all, two files, sure you can edit a file !
    working on Solaris[5-9], preferred languages french and C.

IMN logo majestic logo threadwatch logo seochat tools logo