Link to home
Start Free TrialLog in
Avatar of nexcool
nexcool

asked on

add file permissions to an exsiting folder

I want to add a user to this folder /netshare/ops/inventory   the user is already in the system. i am using samba as the share. how do i add them through the command line version?
Avatar of jhayes92154
jhayes92154

if you mean in linux then you would do a chmod on the folder, if you are talking about samba, then you would have to edit the share in samba in /etc/samba/smb.conf and add that user to the share.
Go to the config section about the share /netshare/ops/inventory in your smb.conf file. If you already allow access on a per user basis, you should have a "valid users" option in this section. Just add the new user to this list:

valid users user1,user2,user2,newuser

You can also add this user to a user group, and then enable access based on this group:

valid users @usergroup



Avatar of nexcool

ASKER

How do i edit the smb.conf file?
ASKER CERTIFIED SOLUTION
Avatar of Karl Heinz Kremer
Karl Heinz Kremer
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nexcool

ASKER

Red hat 9
Unfortunately RH9 does not install any simple editor by default. You should however have gedit available. Try that.