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.
- 09-15-2012 #1Just 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
- 09-15-2012 #2Linux User
- Join Date
- Jan 2005
- Location
- Saint Paul, MN
- Posts
- 398
Besides the fact that you did not give the user a Linux password...
- hussain.new --- is the username you added
- You did say if you have a user name of "xeroxprinter"
- The "useradd" most likely created a "group" of "hussain.new" as well.
- 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.
- 09-15-2012 #3Just Joined!
- Join Date
- Sep 2012
- Posts
- 4
- 09-15-2012 #4Just 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.


Reply With Quote

