Results 1 to 7 of 7
I have an ubuntu server running samba. I have joined to an Active Directory domain and can log in using windows username/passwords. I created a group and gave them ownership ...
- 06-21-2009 #1Just Joined!
- Join Date
- Jun 2009
- Posts
- 6
Why do I have to run chmod 777
I have an ubuntu server running samba. I have joined to an Active Directory domain and can log in using windows username/passwords. I created a group and gave them ownership to all files in a shared folder (via samba) the files have the equivalent of permissions 770. I have added my windows' username to the group. So far everything is cool. I can read and write to the folder. But ... I can not overwrite files.
I changed the other group to have write permissions on one of the files to test it (using the command chmod 777) and suddenly I have the ability to overwrite the file.
I don't understand why the other group needs to have write permissions. Shouldn't my user have the ability to overwrite based on being a member of the owning group?
Thanks for the help!
Trevor
- 06-21-2009 #2"I'm just a little old lady; don't try to dazzle me with jargon!"
- 06-21-2009 #3Just Joined!
- Join Date
- Jun 2009
- Posts
- 6
- 06-22-2009 #4
maybe thats the problem. if when logged in as a domain user, from a command prompt type
does it say DOMAIN+username, or does it just say username?Code:whoami
when I add AD users to a linux group (like sudo) I usually just use the username and not domain+username. but I only log in with a username and my domain is set as the default domain so I don't have to enter that.
- 06-22-2009 #5Just Joined!
- Join Date
- Jun 2009
- Posts
- 6
Thanks for the reply!
When I log in and run whoami, it shows just the username. I have tried adding just the username to the appropriate group using:
and I get an error saying "useradd: user myusername exists"Code:useradd -G webwork myusername
I then manually edited the group file and added myusername to the group. But I still cannot overwrite any files unless I give the other group write permissions.
- 06-22-2009 #6
have you checked the permissions of the file in question?
probably should sayCode:ls -l
as the owner and groupCode:webwork webwork
- 06-22-2009 #7Just Joined!
- Join Date
- Jun 2009
- Posts
- 6
Thanks for the reply. Running ls -l I see the owner as a user and the owning group as webwork.
Thanks,
Trevor


Reply With Quote
