Hot Topic (More than 10 Replies) Linux permissions (Read 2057 times)
joe-x
Member
*
Offline


No personal text

Posts: 21
Joined: Jun 22nd, 2004
Linux permissions
Aug 9th, 2004 at 6:36pm
Print Post Print Post  
Hello,
using redhat 8. sesame designer/new application i get error 'cannot save to specified directory'. the directory is following:
/usr/local/sesame/test/.
file permissions are user:root and group:sesame have ful lpermissions. i am logged in as member of group. thanks--joe
  
Back to top
 
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Linux permissions
Reply #1 - Aug 9th, 2004 at 7:18pm
Print Post Print Post  
I wouldn't recommend that you use that path. The /usr/local path is a good place to put Sesame executables and documents, but running databases should either be used in the appropriate /home directory if standalone or in a /usr/share directory if you are client/server.

Regardless, can you post the "ls -la" results from the /usr/local/sesame/test directory and the /usr/local/sesame directory immediately above it?

You have said that you are in the "sesame group" - and that the sesame group has write permissions on the file. But does that group have write permissions in that directory?

Also, are you launching Sesame from a command line so that it will inherit your identity and your permissions, or is it running as a daemon or server, etc...?
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
joe-x
Member
*
Offline


No personal text

Posts: 21
Joined: Jun 22nd, 2004
Re: Linux permissions
Reply #2 - Aug 9th, 2004 at 8:51pm
Print Post Print Post  
hmmm--i am having trouble starting from the command line as follows:
/usr/local/sesame/sesame server test_server
"failure while loading database test_server"
anyway--here is the result of ls -la
[root@testserver sesame]# ls -al
total 6160
drwxrwxr-x  6 root  sesame    4096 Jul 13 23:51 .
drwxr-xr-x 13 root  root      4096 Jul 13 23:01 ..
drwxrwxr-x  2 root  sesame    4096 Jul 13 23:51 asc
drwxrwxr-x  2 root  sesame    4096 Apr  6 14:57 Docs
drwxrwxr-x  2 root  sesame   12288 Dec 15 2003  HelpFiles
-rwxrwxr-x  1 root  sesame   14271 Apr  6 10:34 lock_status
drwxrwxr-x  2 root  sesame    4096 Jul 13 23:50 test
-rwxrwxr-x  1 root  sesame      23 Dec 14 2003  rootdirs.ini
-rwxrwxr-x  1 root  sesame 3373027 Apr  6 12:18 sdesigner
-rwxrwxr-x  1 root  sesame 2834187 Apr  6 12:18 sesame
-rwxrwxr-x  1 root  sesame    3262 Apr 28  2003 sesicon3.ico
-rwxrwxr-x  1 root  sesame   14396 Apr  6 10:34 sunlock
-rwxrwxr-x  1 root  sesame   14367 Apr  6 10:34 s_version
   cannot save to /usr/share either... thanks. joe
  
Back to top
 
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Linux permissions
Reply #3 - Aug 9th, 2004 at 8:58pm
Print Post Print Post  
This:

Quote:
/usr/local/sesame/sesame server test_server


should be:
Quote:
/usr/local/sesame/sesame -server test_server


Note the dash!
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Linux permissions
Reply #4 - Aug 9th, 2004 at 9:01pm
Print Post Print Post  
Can you send me the ls -la for the directory "/usr/local/sesame/test"?

If you "su" and "cd /usr/local/sesame" and then launch Sesame with "./sesame" are you able to write to "/usr/local/sesame/test" as the root user?
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
joe-x
Member
*
Offline


No personal text

Posts: 21
Joined: Jun 22nd, 2004
Re: Linux permissions
Reply #5 - Aug 9th, 2004 at 9:22pm
Print Post Print Post  
hi all-
ls -la results are above.
first of all, thanks for the "-" i wondered about that, it is NOT in my manual.
ok, when i try to start sesame server with that i get a "failed to create socket, permission denied error" joe
  
Back to top
 
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Linux permissions
Reply #6 - Aug 10th, 2004 at 11:27am
Print Post Print Post  
Quote:
hi all-
ls -la results are above.

I see the "ls -la" for "/usr/local/sesame", but no the "ls -la" for "/usr/local/sesame/test" - the content of the "test" directory.
Quote:
first of all, thanks for the "-" i wondered about that, it is NOT in my manual.

Yeah, we know. I think it is posted in the errata, addendum, or workarounds page. I can't remember which.
Quote:
ok, when i try to start sesame server with that i get a "failed to create socket, permission denied error" joe


That would mean that your account does not have permission to open either the default ports or does not have permission to open the default network device. Is this your computer? If so, you will have to make changes in the /dev directory or in the /etc directory (usually through the admin user interface) to tell the firewall/IP chaining, that you are activating the default ports for Sesame (20000, 20001), or whatever ports you choose to use. You can put an entry in for Sesame in the /etc/services file to indicate the default ports you would like to use. If it is not your computer and you cannot log in as root, you will need to speak to the system administrator and have them make the appropriate settings.

  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
joe-x
Member
*
Offline


No personal text

Posts: 21
Joined: Jun 22nd, 2004
Re: Linux permissions
Reply #7 - Aug 10th, 2004 at 4:00pm
Print Post Print Post  
hello again,
ok i have started the server using ports 20020:20021. they are entered in the services file, alo allowed in security settings.
now--problem is when i try to connect client i get "too many clients" error. however, server is showing 0 connections--thanks!joe
ps--TEST dir is empty...sorry.
  
Back to top
 
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Linux permissions
Reply #8 - Aug 10th, 2004 at 4:08pm
Print Post Print Post  
If you change the ports the server is defaulting to, you must also specify those same ports on the client:

sesame -client server_name:20020:20021
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
joe-x
Member
*
Offline


No personal text

Posts: 21
Joined: Jun 22nd, 2004
Re: Linux permissions
Reply #9 - Aug 10th, 2004 at 4:33pm
Print Post Print Post  
ok great it's running. server and client.
but i am still getting "cannot save to specified path" error.
do i need to create a new user for sesame?
sorry for the questions, only used linux as web/mail server before....joe
  
Back to top
 
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Linux permissions
Reply #10 - Aug 10th, 2004 at 4:45pm
Print Post Print Post  
You don't need to create a new user for sesame. It will be run (as any executable on Unix) with the permissions of the user that launched it. Try launching it as root (as an experiment), since we know that root can write to that directory. If sesame run from root can write to that directory, then it is a directory permission problem. If it can't, see if you can create a file in that directory by hand as yourself or as root. If you can create a file there, but Sesame running as root cannot, then it is a path problem. The path will appear in the dialog box near the bottom right. Before you click on anything in the dialog box, what does it say? Are /usr/local/sesame and /usr/local/sesame/test in your rootdirs.ini file?
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
joe-x
Member
*
Offline


No personal text

Posts: 21
Joined: Jun 22nd, 2004
Re: Linux permissions
Reply #11 - Aug 12th, 2004 at 2:50pm
Print Post Print Post  
thanks for the path tips. seems ok!
but have to start a new thread..........joe
  
Back to top
 
IP Logged