Find the answer to your Linux question:
Results 1 to 4 of 4
This is the first time I have used linux just want to know what my error is in these commands 100 useradd -G sambagroup,public,scanner hussain.new 101 smbpasswd -a hussain.new 102 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2012
    Posts
    4

    chown problem


    This is the first time I have used linux just want to know what my error is in these commands

    100 useradd -G sambagroup,public,scanner hussain.new
    101 smbpasswd -a hussain.new
    102 mkdir /raid5/scanner/hussainew
    103 chmod -R 770 /raid5/scanner/hussainew

    all the commands above where executed, but the command below an error invalid user error comes out.

    104 chown -R xeroxprinter.hussainew /raid5/scanner/hussainew

    These commands are meant to make the xeroxprinter scanner be able to write into the hussainew folder where the pdf will be saved.

    Thanks in advance

  2. #2
    Linux Enthusiast
    Join Date
    Jan 2005
    Location
    Saint Paul, MN
    Posts
    629
    Quote Originally Posted by dxwarrior View Post
    This is the first time I have used linux just want to know what my error is in these commands

    100 useradd -G sambagroup,public,scanner hussain.new
    101 smbpasswd -a hussain.new
    102 mkdir /raid5/scanner/hussainew
    103 chmod -R 770 /raid5/scanner/hussainew

    all the commands above where executed, but the command below an error invalid user error comes out.

    104 chown -R xeroxprinter.hussainew /raid5/scanner/hussainew

    These commands are meant to make the xeroxprinter scanner be able to write into the hussainew folder where the pdf will be saved.

    Thanks in advance
    Besides the fact that you did not give the user a Linux password...

    1. hussain.new --- is the username you added
    2. You did say if you have a user name of "xeroxprinter"
    3. The "useradd" most likely created a "group" of "hussain.new" as well.
    4. at history line 104, you are attempting to do two thing at once. These are
      • Change the "user ownership" to the username "xeroxprinter"
      • Change the "group ownership" to the group "hussainnew"


    Most people do not include the period in the user names that they create (although I have seen them used in the form of:
    • username
    • username.group1
    • username.group2

    where "username" uses the "primary group" when logging in an "username.group1" would use the group name "group1" when logging, and so on.


    Samba account access is completely separated from the Linux account access. Although you can "map" the SAMBA account to a Linux account.

  3. #3
    Just Joined!
    Join Date
    Sep 2012
    Posts
    4
    Quote Originally Posted by alf55 View Post
    Besides the fact that you did not give the user a Linux password...

    1. hussain.new --- is the username you added
    2. You did say if you have a user name of "xeroxprinter"
    3. The "useradd" most likely created a "group" of "hussain.new" as well.
    4. at history line 104, you are attempting to do two thing at once. These are
      • Change the "user ownership" to the username "xeroxprinter"
      • Change the "group ownership" to the group "hussainnew"


    Most people do not include the period in the user names that they create (although I have seen them used in the form of:
    • username
    • username.group1
    • username.group2

    where "username" uses the "primary group" when logging in an "username.group1" would use the group name "group1" when logging, and so on.


    Samba account access is completely separated from the Linux account access. Although you can "map" the SAMBA account to a Linux account.


    Please provide me with the command to "map" the SAMBA account to the Linux account.

  4. #4
    Just Joined!
    Join Date
    Sep 2012
    Posts
    4
    Based on your comments I issued the command

    104 chown -R xeroxprinter /raid5/scanner/hussainew

    It worked!!! Thanks a lot to the good hearted people like you. 'I will be asking more stupid questions though'.

    Thanks Again.

Posting Permissions

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