So, I successfully spawned ssh access to the "PUBLIC" folder a little over a month ago and everything has been working fine. I recently decided to create a new share outside the PUBLIC folder and for some reason I am unable to access it via SSH. I can, however, access it through a terminal connection when logged in as root, but I still can't mount the share on my desktop like normal. PUBLIC remains totally accessible. Also, the new share IS available through my normal smb local network. Anyone know what's going on?
I am stuck on the same exact thing. Can anyone help?
Ok guys, i think this is a samba problem so you should try this; you're gonna have to edit your /var/oxsemi/shares.inc file.
This is an example of my file:
[BACKUP] path=/shares/internal/BACKUP force user=www-data valid users=Lorent write list=Lorent [KEITH] path=/shares/internal/KEITH force user=www-data valid users=Lorent Keith write list=Lorent Keith [PUBLIC] path=/shares/internal/PUBLIC force user=www-data valid users=www-data Lorent Keith Guest write list=www-data Lorent Keith Guest guest ok=Yes
Now i created a file called TORRENT to keep my downloads in. If i wanted to have it viewed on the network i'd change my file to:
[BACKUP] path=/shares/internal/BACKUP force user=www-data valid users=Lorent write list=Lorent [KEITH] path=/shares/internal/KEITH force user=www-data valid users=Lorent Keith write list=Lorent Keith [PUBLIC] path=/shares/internal/PUBLIC force user=www-data valid users=www-data Lorent Keith Guest write list=www-data Lorent Keith Guest guest ok=Yes [TORRENT] #Name of the folder displayed on the network. All characters will be in lower case. path=/shares/internal/TORRENT #Path to directory force user=www-data #Just keep this here, makes life easier valid users=www-data Lorent Guest #Enter all the users that are allowed to view this folder (Seperated by a space) write list=www-data Lorent #Enter all the users that are allowed to write/edit this folder (Seperated by a space) guest ok=Yes #This line is optional :) #Note: Root does not need to be mentioned... root rules all! #Note: Dont change "PUBLIC" folders name, it just makes a new one at boot so you have 2 links to the same directory :)
Just save the file then refresh your browser. Give it a minute if nothing happens. If you're waiting longer go back and check the file :P
Hope this helps! :)
Edit: Be sure that the folder you want access to has the matching permissions :)
Another Edit: You wouldn't believe how many times i've editted this just to make it look nicer ^.^
I appreciate your input Lorent!
I checked my shares.inc file and the read/write lists seem to be in order. Still, I have no luck creating and renaming files when logged in with ssh (GUI). I have been playing with the permissions relentlessly and even when I allow rwx access to user,group,other it still tells me i do not have permission to ____. I have even added my user to www-data group and root group by editing the /etc/group file. And have also tried changing my group number to 33 or 0 (www-data root, respectively) in the /etc/passwd file. I also tried chown'ing the directory (share) to give it different user/group ownership, but that still does not give me total access, even after creating a new group w/ addgroup command.
I'll describe exactly what i'm trying to accomplish and hopefully there's someone out there that can give me a step-by-step to get it set up…..
I have a share created called MASSIVMUSIC. I would like to be able to a) have total access to this directory as my own user (preferably not root), and b) give access to this directory to a certain few other users, whom i've already created usernames for with the web GUI. I would not, however, like to give these other users access to my other shares. It doesn't seem like this should be so hard, but I'm about ready to pull my hair out over this one!!
Any more help would be greatly appreciated…..
*note: all the permissions toying around i've done seems to work just fine when within my local network via samba. It's only when i connect via SSH that things don't work the way they should.